.gallery-hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background: linear-gradient(135deg, #f7ebd4 0%, #e9dcfc 55%, #ffffff 100%);
}

.gallery-hero-content {
    position: relative;
    z-index: 3;
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(244, 180, 0, 0.22);
    border-radius: 999px;
    background: rgba(244, 180, 0, 0.12);
    color: #f0ae00;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 25px;
}

.gallery-hero .gallery-title {
    margin-bottom: 18px;
    color: #2d1b4e;
    font-family: 'Fraunces', serif;
    font-size: clamp(2.9rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.08;
}

.gallery-hero .gallery-title span {
    color: #ffca0a;
}

.gallery-hero .gallery-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: #71667f;
    font-size: 1.18rem;
    line-height: 1.75;
}

.gallery-ring {
    position: absolute;
    z-index: 1;
    border: 2px dashed rgba(244, 180, 0, 0.38);
    border-radius: 50%;
    pointer-events: none;
}

.gallery-ring-left {
    bottom: 10px;
    left: -30px;
    width: 135px;
    height: 135px;
    animation: gallerySpin 20s linear infinite;
}

.gallery-ring-right {
    top: -25px;
    right: -15px;
    width: 165px;
    height: 165px;
    border-color: rgba(97, 55, 155, 0.31);
    animation: gallerySpinReverse 20s linear infinite;
}

.gallery-shape {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    opacity: 0.28;
    filter: blur(2px);
    pointer-events: none;
    animation: galleryFloat 7s ease-in-out infinite;
}

.gallery-shape-one {
    top: 60px;
    left: 150px;
    width: 70px;
    height: 70px;
    background: rgb(244, 179, 0);
}

.gallery-shape-two {
    bottom: 10px;
    left: -30px;
    width: 130px;
    height: 130px;
    background: rgb(143, 110, 189);
    animation-duration: 5s;
}

.gallery-shape-three {
    right: 130px;
    bottom: 60px;
    width: 80px;
    height: 80px;
    background: rgb(246, 213, 93);
    animation-duration: 6s;
}

.gallery-shape-four {
    top: -20px;
    right: -10px;
    width: 160px;
    height: 160px;
    background: rgba(192, 87, 210, 0.9);
    animation-duration: 4s;
}

.gallery-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 2;
    line-height: 0;
}

.gallery-wave svg {
    display: block;
    width: 100%;
    height: 88px;
}

.gallery-wave path {
    fill: #ffffff;
}

.gallery-grid-section {
    padding: 88px 0;
    background: #ffffff;
}

.gallery-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 44px;
}

.gallery-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #9d6fcf;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-section-head h2 {
    margin: 0;
    color: #2d1b4e;
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

.gallery-section-head p {
    max-width: 280px;
    margin: 0;
    color: #6d6480;
    font-size: 0.95rem;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 24px;
}

.gallery-tile {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 0;
    border-radius: 32px;
    padding: 0;
    background: #2d1b4e;
    box-shadow: 0 18px 38px rgba(45, 27, 78, 0.12);
    text-align: left;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(45, 27, 78, 0.22);
}

.gallery-tile-1 {
    grid-column: span 7;
    grid-row: span 2;
    min-height: 540px;
}

.gallery-tile-2,
.gallery-tile-3 {
    grid-column: span 5;
    min-height: 258px;
}

.gallery-tile-4,
.gallery-tile-5,
.gallery-tile-6 {
    grid-column: span 4;
    min-height: 420px;
}

.gallery-tile-7,
.gallery-tile-8 {
    grid-column: span 6;
    min-height: 330px;
}

.gallery-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

.gallery-tile-gradient {
    position: absolute;
    inset: 0;
}

.gallery-tile-gradient {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.12) 0%, rgba(45, 27, 78, 0.34) 45%, rgba(18, 10, 30, 0.9) 100%);
}

.gallery-chip {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 82px);
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #2d1b4e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-tile-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 28px;
    color: #ffffff;
}

.gallery-tile-content strong,
.gallery-tile-content span,
.gallery-tile-content em {
    display: block;
}

.gallery-tile-content strong {
    font-family: 'Fraunces', serif;
    font-size: 1.65rem;
    line-height: 1.15;
}

.gallery-tile-content span {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.6;
    transition: max-height 0.45s ease, margin-top 0.45s ease;
}

.gallery-tile:hover .gallery-tile-content span {
    max-height: 78px;
    margin-top: 10px;
}

.gallery-tile-content em {
    position: relative;
    margin-top: 16px;
    padding-left: 46px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gallery-tile-content em::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-50%);
    transition: width 0.35s ease;
}

.gallery-tile:hover .gallery-tile-content em::before {
    width: 48px;
}

.gallery-visit-section {
    padding: 88px 0;
    background: #ffffff;
}

.gallery-visit-card {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 40px;
    padding: 64px 32px;
    background: linear-gradient(135deg, #c098ea 0%, #c28be0 52%, #a55bff 100%);
    box-shadow: 0 24px 55px rgba(90, 45, 145, 0.22);
    text-align: center;
}

.gallery-visit-content {
    position: relative;
    z-index: 2;
}

.gallery-visit-card h2 {
    margin-bottom: 16px;
    color: #380069;
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.gallery-visit-card p {
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.gallery-visit-btn,
.gallery-panel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding: 14px 24px;
    border-radius: 999px;
    background: #ffffff;
    color: #9d6fcf;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-visit-btn:hover,
.gallery-panel-cta:hover {
    color: #9d6fcf;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(45, 27, 78, 0.16);
}

.gallery-panel {
    position: fixed;
    inset: 0;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
}

.gallery-panel.is-open {
    visibility: visible;
    pointer-events: auto;
}

.gallery-panel-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(18, 10, 30, 0.42);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-panel.is-open .gallery-panel-backdrop {
    opacity: 1;
}

.gallery-panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 600px);
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.gallery-panel.is-open .gallery-panel-content {
    transform: translateX(0);
}

.gallery-panel-close,
.gallery-lightbox-close {
    position: fixed;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 3px solid #000000;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
}

.gallery-panel-close {
    top: 14px;
    right: 14px;
}

.gallery-panel-close::before,
.gallery-panel-close::after,
.gallery-lightbox-close::before,
.gallery-lightbox-close::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 3px;
    border-radius: 999px;
    background: #000000;
}

.gallery-panel-close::before,
.gallery-lightbox-close::before {
    transform: rotate(45deg);
}

.gallery-panel-close::after,
.gallery-lightbox-close::after {
    transform: rotate(-45deg);
}

.gallery-panel-close:hover,
.gallery-lightbox-close:hover {
    background: #ffffff;
}

.gallery-panel-image {
    position: relative;
    height: 330px;
}

.gallery-panel-image img,
.gallery-panel-image-tint {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-panel-image img {
    object-fit: cover;
}

.gallery-panel-image-tint {
    background: linear-gradient(180deg, rgba(45, 27, 78, 0.1) 0%, rgba(18, 10, 30, 0.78) 100%);
}

.gallery-panel-chip {
    position: absolute;
    bottom: 24px;
    left: 28px;
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d1b4e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gallery-panel-body {
    padding: 34px;
}

.gallery-panel-body h2 {
    margin-bottom: 14px;
    color: #2d1b4e;
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.gallery-panel-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.gallery-panel-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(157, 111, 207, 0.4), transparent);
}

.gallery-panel-divider strong,
.gallery-panel-highlights h3 {
    color: #9d6fcf;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gallery-panel-body p {
    color: rgba(45, 27, 78, 0.78);
    font-size: 1rem;
    line-height: 1.8;
}

.gallery-panel-highlights {
    margin-top: 30px;
}

.gallery-highlight-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(157, 111, 207, 0.12);
    border-radius: 18px;
    background: rgba(244, 236, 255, 0.7);
}

.gallery-highlight-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgb(106, 13, 173);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.gallery-highlight-row strong {
    color: #2d1b4e;
    font-size: 0.95rem;
}

.gallery-panel-note {
    position: relative;
    margin-top: 32px;
    padding: 22px;
    border: 1px solid rgba(244, 180, 0, 0.18);
    border-radius: 22px;
    background: #fff8e6;
}

.gallery-panel-note p {
    margin-bottom: 0;
    color: rgba(45, 27, 78, 0.72);
    font-size: 0.95rem;
    font-style: italic;
}

.gallery-panel-related {
    margin-top: 34px;
}

.gallery-panel-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-panel-related-head strong {
    color: #6d6480;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.gallery-panel-related-head span {
    color: #6d6480;
    font-size: 0.86rem;
}

.gallery-panel-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gallery-related-image {
    position: relative;
    overflow: hidden;
    padding: 0;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(157, 111, 207, 0.14);
    border-radius: 14px;
    background: #f6f0ff;
    cursor: pointer;
}

.gallery-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gallery-related-image:hover img {
    transform: scale(1.08);
}

.gallery-panel-cta {
    border: 0;
    width: 100%;
    background:  rgb(106, 13, 173);
    color: #ffffff;
    cursor: pointer;
}

.gallery-panel-cta:hover {
    color: #ffffff;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-lightbox.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(18, 10, 30, 0.92);
}

.gallery-lightbox img {
    position: relative;
    z-index: 2;
    max-width: min(100%, 1000px);
    max-height: 75vh;
    border-radius: 22px;
    object-fit: contain;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.gallery-lightbox-nav {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 3px solid #000000;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: none;
    cursor: pointer;
}

.gallery-lightbox-close {
    top: 24px;
    right: 24px;
}

.gallery-lightbox-nav {
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
}

.gallery-lightbox-nav:hover {
    background: #ffffff;
    transform: translateY(-50%);
}

.gallery-lightbox-nav::before {
    content: "";
    width: 12px;
    height: 12px;
    border-top: 3px solid #000000;
    border-right: 3px solid #000000;
    transform: rotate(45deg);
}

.gallery-lightbox-prev::before {
    transform: translateX(3px) rotate(-135deg);
}

.gallery-lightbox-prev {
    left: 20px;
}

.gallery-lightbox-next {
    right: 20px;
}

.gallery-lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.gallery-panel-open {
    overflow: hidden;
}

@keyframes galleryFloat {
    0% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(-16px) translateX(10px) scale(1.05);
    }
    100% {
        transform: translateY(0) translateX(0) scale(1);
    }
}

@keyframes gallerySpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gallerySpinReverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

@media (max-width: 991px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-tile,
    .gallery-tile-1,
    .gallery-tile-2,
    .gallery-tile-3,
    .gallery-tile-4,
    .gallery-tile-5,
    .gallery-tile-6,
    .gallery-tile-7,
    .gallery-tile-8 {
        grid-column: span 1;
        min-height: 360px;
    }

    .gallery-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .gallery-hero {
        padding: 88px 0 96px;
    }

    .gallery-hero .gallery-title {
        font-size: 2.6rem;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .gallery-tile,
    .gallery-tile-1,
    .gallery-tile-2,
    .gallery-tile-3,
    .gallery-tile-4,
    .gallery-tile-5,
    .gallery-tile-6,
    .gallery-tile-7,
    .gallery-tile-8 {
        min-height: 340px;
    }

    .gallery-ring,
    .gallery-shape {
        display: none;
    }

    .gallery-panel-body {
        padding: 26px;
    }

    .gallery-panel-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-lightbox {
        padding: 18px;
    }

    .gallery-lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .gallery-lightbox-prev {
        left: 12px;
    }

    .gallery-lightbox-next {
        right: 12px;
    }
}
