/* ============================================
   GALLERY PAGE DESIGN - SHRIJI DIAMOND
   ============================================ */

.gallery-page-section {
    background:
        radial-gradient(circle at top left, rgba(197, 155, 45, 0.10), transparent 32%),
        radial-gradient(circle at bottom right, rgba(197, 155, 45, 0.08), transparent 34%),
        linear-gradient(135deg, #fffdf8 0%, #ffffff 100%);
    padding: 55px 0 85px;
    position: relative;
    overflow: hidden;
}

.gallery-page-section::before {
    content: "✦";
    position: absolute;
    top: 70px;
    left: 6%;
    font-size: 110px;
    color: rgba(197, 155, 45, 0.09);
    pointer-events: none;
}

.gallery-page-section::after {
    content: "❖";
    position: absolute;
    right: 6%;
    bottom: 70px;
    font-size: 120px;
    color: rgba(197, 155, 45, 0.08);
    pointer-events: none;
}

.gallery-page-section .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.gallery-breadcrumb {
    background: #ffffff;
    border: 1px solid rgba(197, 155, 45, 0.20);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    margin-bottom: 35px;
}

.gallery-breadcrumb .breadcrumb {
    margin: 0;
}

.gallery-breadcrumb .breadcrumb-item a {
    color: #c59b2d;
    font-weight: 700;
    text-decoration: none;
}

.gallery-breadcrumb .breadcrumb-item.active {
    color: #444444;
    font-weight: 600;
}

/* Heading */
.gallery-heading {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-heading span {
    display: inline-block;
    color: #c59b2d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gallery-heading h1 {
    color: #111111;
    font-size: 46px;
    font-weight: 850;
    margin-bottom: 14px;
}

.gallery-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #555555;
    font-size: 16px;
    line-height: 1.8;
}

.gallery-heading .gallery-divider {
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c59b2d, transparent);
    margin: 18px auto 0;
    position: relative;
}

.gallery-heading .gallery-divider::before,
.gallery-heading .gallery-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c59b2d;
    transform: translateY(-50%);
}

.gallery-heading .gallery-divider::before {
    left: 12px;
}

.gallery-heading .gallery-divider::after {
    right: 12px;
}

/* Gallery Grid Item */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid rgba(197, 155, 45, 0.24);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    height: 100%;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(197, 155, 45, 0.25), rgba(17, 17, 17, 0.40));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #c59b2d;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 155, 45, 0.55);
    box-shadow: 0 20px 45px rgba(197, 155, 45, 0.16);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Caption */
.gallery-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: rgba(17, 17, 17, 0.72);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 16px;
    z-index: 4;
    transform: translateY(18px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(6px);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

/* Empty State */
.gallery-empty {
    background: #ffffff;
    border: 1px dashed rgba(197, 155, 45, 0.45);
    padding: 45px 25px;
    border-radius: 22px;
    text-align: center;
    color: #555555;
    font-weight: 600;
}

/* ============================================
   LIGHTBOX DESIGN
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at top, rgba(197, 155, 45, 0.18), transparent 35%),
        rgba(0, 0, 0, 0.94);
    z-index: 99999;
    cursor: pointer;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    width: 92%;
    max-width: 1180px;
    height: calc(100vh - 90px);
    margin: 45px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 20px;
    background: #ffffff;
    padding: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
    transition: opacity 0.2s ease;
    animation: lightboxZoomIn 0.28s ease;
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.close-btn {
    position: absolute;
    top: -18px;
    right: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(197, 155, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 34px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.close-btn:hover {
    background: #ffffff;
    color: #c59b2d;
    transform: rotate(90deg);
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 74px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 30px;
    cursor: pointer;
    z-index: 100;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.nav-btn:hover {
    background: #c59b2d;
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 18px;
}

.next-btn {
    right: 18px;
}

/* Lightbox Caption */
.lightbox-caption {
    margin-top: 18px;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    padding: 12px 22px;
    background: rgba(17, 17, 17, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
}

/* Counter */
.image-counter {
    position: absolute;
    top: -15px;
    left: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    background: rgba(197, 155, 45, 0.92);
    padding: 9px 16px;
    border-radius: 50px;
    z-index: 100;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .gallery-heading h1 {
        font-size: 38px;
    }

    .gallery-item img {
        height: 235px;
    }
}

@media (max-width: 767px) {
    .gallery-page-section {
        padding: 40px 0 60px;
    }

    .gallery-heading {
        margin-bottom: 35px;
    }

    .gallery-heading h1 {
        font-size: 32px;
    }

    .gallery-heading p {
        font-size: 15px;
    }

    .gallery-item {
        border-radius: 18px;
    }

    .gallery-item img {
        height: 190px;
    }

    .gallery-caption {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .gallery-caption h5 {
        font-size: 13px;
    }

    .lightbox-content {
        width: 94%;
        height: calc(100vh - 70px);
        margin: 35px auto;
    }

    .lightbox-content img {
        max-height: 72vh;
        border-radius: 14px;
        padding: 5px;
    }

    .close-btn {
        top: -22px;
        right: 0;
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    .nav-btn {
        width: 42px;
        height: 58px;
        font-size: 22px;
        border-radius: 14px;
    }

    .prev-btn {
        left: 4px;
    }

    .next-btn {
        right: 4px;
    }

    .lightbox-caption {
        font-size: 14px;
        border-radius: 14px;
        padding: 10px 16px;
    }

    .image-counter {
        top: -22px;
        font-size: 12px;
        padding: 8px 13px;
    }
}

@media (max-width: 575px) {
    .gallery-item img {
        height: 165px;
    }

    .gallery-heading h1 {
        font-size: 29px;
    }

    .gallery-breadcrumb {
        padding: 10px 16px;
        font-size: 14px;
    }
}