/* ==========================================================================
   AFAMS PHOTO GALLERY WIDGET STYLES
   ========================================================================== */

.afam-photo-gallery-wrapper {
	width: 100%;
	margin-bottom: 50px;
}

/* Gallery Section Header */
.afam-gallery-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	position: relative;
}

.afam-gallery-title-wrapper {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 auto;
}

.afam-gallery-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: #0b1e36;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0;
}

.title-line {
	width: 60px;
	height: 3px;
	background: #d4af37;
	border-radius: 2px;
	display: inline-block;
}

/* Top Button */
.afam-gallery-btn-top {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #0b1e36;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

.afam-gallery-btn-top:hover {
	background: #f8fafc;
	border-color: #0b1e36;
	color: #0b1e36;
}

/* Photo Grid */
.afam-photo-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 35px;
}

.afam-photo-card {
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
	background: #0b1e36;
	aspect-ratio: 4 / 3;
}

.afam-photo-link {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.afam-photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.afam-photo-card:hover img {
	transform: scale(1.08);
}

.afam-photo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 30, 54, 0.85) 0%, rgba(11, 30, 54, 0.2) 60%, transparent 100%);
	opacity: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	transition: opacity 0.3s ease;
}

.afam-photo-card:hover .afam-photo-overlay {
	opacity: 1;
}

.afam-photo-zoom-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(212, 175, 55, 0.9);
	color: #0b1e36;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	align-self: flex-end;
}

.afam-photo-caption {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

/* Bottom CTA Button */
.afam-gallery-bottom-btn-wrapper {
	text-align: center;
}

.afam-gallery-btn-bottom {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border: 1.5px solid #0b1e36;
	border-radius: 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #0b1e36;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.afam-gallery-btn-bottom:hover {
	background: #0b1e36;
	color: #ffffff;
	transform: translateY(-2px);
}

.afam-gallery-btn-bottom i {
	transition: transform 0.2s ease;
}

.afam-gallery-btn-bottom:hover i {
	transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
	.afam-photo-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.afam-gallery-btn-top {
		position: static;
		transform: none;
	}
	.afam-gallery-header {
		flex-direction: column;
		gap: 15px;
	}
}

@media (max-width: 640px) {
	.afam-photo-grid {
		grid-template-columns: 1fr;
	}
}
