/* ═══ GALLERY HERO SECTION ═══ */
.gallery-hero {
    position: relative;
    height: 40vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin-top: 80px;
    /* Offset for navbar */
    overflow: hidden;
}

.gallery-hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) blur(2px);
    transform: scale(1.05);
    will-change: transform;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 10%;
    animation: fadeInDown 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    width: 100%;
}

.gallery-hero-content h1 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(3rem, 6vw, 85px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 10px;
    color: #ffffff;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.gallery-hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 105%;
    height: 15px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'><path d='M 5 18 C 20 8, 50 4, 95 6' fill='none' stroke='%23f57f17' stroke-width='4' stroke-linecap='round'/></svg>") no-repeat left center;
    background-size: 100% 100%;
}

.gallery-hero-content p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff;
    display: block;
    margin-top: 10px;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══ GALLERY SECTION ═══ */
.gallery-section {
    padding: 80px 0;
    background: #fdfdfd;
}

/* ── Load More ── */
.load-more-container {
    text-align: center;
    margin-top: 50px;
}

.btn-load-more {
    background: transparent;
    color: #800000;
    border: 2px solid #800000;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: #800000;
    color: white;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* ── Grid Layout ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    background: #fff;
    align-self: start;
    height: auto;
}

.gallery-item.hide {
    display: none;
}

.gallery-img-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

/* Badge showing number of photos in the album */
.album-count-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(11, 16, 33, 0.82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    z-index: 2;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.album-count-badge i {
    color: #ffd700;
    font-size: 11px;
}

/* Hover overlay cue on album image */
.album-hover-cue {
    position: absolute;
    inset: 0;
    background: rgba(128, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.album-hover-cue span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateY(8px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .album-hover-cue {
    opacity: 1;
}

.gallery-item:hover .album-hover-cue span {
    transform: translateY(0);
}

.gallery-item:hover .gallery-img-wrap img {
    transform: scale(1.08);
}

/* ── Static Text Below Image ── */
.gallery-overlay {
    background: white;
    padding: 16px 20px;
    text-align: center;
    border-top: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    height: auto;
    flex: none;
}

.gallery-content {
    color: #333;
}

.gallery-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

.gallery-content p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

.album-read-toggle {
    background: none;
    border: none;
    color: var(--primary, #800000);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 3px;
    text-decoration: underline;
    display: inline-block;
    transition: color 0.2s ease;
}

.album-read-toggle:hover {
    color: #0b1021;
}

.gallery-desc .desc-text.expanded {
    max-height: 120px;
    overflow-y: auto;
    display: block;
    padding: 4px 0;
    text-align: left;
}

.gallery-desc .desc-text.expanded::-webkit-scrollbar {
    width: 4px;
}
.gallery-desc .desc-text.expanded::-webkit-scrollbar-thumb {
    background: rgba(128, 0, 0, 0.4);
    border-radius: 4px;
}

/* Clear CTA link at the bottom of the card */
.album-cta {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    text-align: center;
}

.view-album-link {
    color: var(--primary, #800000);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.view-album-link i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15);
}

.gallery-item:hover .view-album-link {
    color: #a00000;
}

.gallery-item:hover .view-album-link i {
    transform: translateX(4px);
}

/* ═══ LIGHTBOX ═══ */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease, color 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: #d13014;
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    position: relative;
}

.lightbox-img-wrapper {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.gallery-lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    margin-right: 20px;
}

.lightbox-next {
    margin-left: 20px;
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.gallery-lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        position: absolute;
    }

    .lightbox-prev {
        left: 5px;
        margin: 0;
    }

    .lightbox-next {
        right: 5px;
        margin: 0;
    }

    .lightbox-img-wrapper {
        max-width: 95%;
    }
}

.about-hero {
    padding: 120px 0 30px 0;
    background-color: #f9f9f9;
    text-align: center;
}



.section-second-title {
    margin: 0 auto;
    font-size: 1.2rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 30px;
    }

    .section-second-title {
        font-size: 15px;
    }
}