
/* ==========================================
   AARAMBH HOMESTAY - GALLERY PAGE
========================================== */

:root {
    --gallery-sage: #34483d;
    --gallery-sage-light: #536b5b;
    --gallery-ivory: #f5f2ea;
    --gallery-white: #fffdf8;
    --gallery-terracotta: #b77d55;
    --gallery-text: #666b62;
    --gallery-border: #e5dfd2;
}


/* ==========================================
   HERO SECTION
========================================== */

.gallery-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image: url("../assets/images/gallery-1.jpg");
    background-size: cover;
    background-position: center;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(27, 43, 34, 0.88) 0%,
        rgba(27, 43, 34, 0.62) 45%,
        rgba(27, 43, 34, 0.15) 100%
    );
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 100px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
}

.gallery-hero-text {
    max-width: 680px;
}

.gallery-hero-eyebrow {
    display: inline-block;
    color: #e4bd9c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 22px;
}

.gallery-hero-text h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(58px, 8vw, 92px);
    font-weight: 500;
    line-height: 0.98;
    color: #fff;
    margin: 0 0 25px;
}

.gallery-hero-text h1 span {
    display: block;
    color: #e2b58e;
    font-style: italic;
}

.gallery-hero-text p {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 32px;
}

.gallery-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 16px 27px;
    background: var(--gallery-terracotta);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 1.5px;
    transition: 0.35s ease;
}

.gallery-hero-btn:hover {
    background: #fff;
    color: var(--gallery-sage);
    transform: translateY(-4px);
}

.gallery-hero-side-note {
    display: flex;
    align-items: center;
    gap: 15px;
    transform: rotate(90deg);
    transform-origin: center;
    color: #fff;
    margin-right: -35px;
}

.gallery-hero-side-note span {
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    color: #e2b58e;
}

.gallery-hero-side-note div {
    width: 65px;
    height: 1px;
    background: rgba(255, 255, 255, 0.65);
}

.gallery-hero-side-note small {
    font-size: 9px;
    letter-spacing: 3px;
    white-space: nowrap;
}


/* ==========================================
   BREADCRUMB
========================================== */

.gallery-breadcrumb {
    padding: 18px 20px;
    background: var(--gallery-ivory);
    border-bottom: 1px solid var(--gallery-border);
}

.gallery-breadcrumb .container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.gallery-breadcrumb a {
    color: var(--gallery-sage);
    text-decoration: none;
    transition: 0.3s;
}

.gallery-breadcrumb a:hover {
    color: var(--gallery-terracotta);
}

.gallery-breadcrumb span {
    color: #99978e;
}


/* ==========================================
   INTRODUCTION SECTION
========================================== */

.gallery-intro {
    padding: 85px 20px 55px;
    background: var(--gallery-ivory);
}

.gallery-intro .container {
    max-width: 1200px;
    margin: auto;
}

.gallery-intro-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    padding: 60px 65px;
    background: var(--gallery-white);
    border: 1px solid var(--gallery-border);
    border-top: 4px solid var(--gallery-terracotta);
    box-shadow: 0 15px 45px rgba(52, 72, 61, 0.07);
    overflow: hidden;
}

.gallery-intro-left,
.gallery-intro-right {
    position: relative;
    z-index: 2;
}

.gallery-intro-left .section-eyebrow {
    display: block;
    color: var(--gallery-terracotta);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.gallery-intro-left h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 4vw, 53px);
    line-height: 1.05;
    font-weight: 500;
    color: var(--gallery-sage);
    margin: 0;
}

.gallery-intro-left h2 span {
    display: block;
    color: var(--gallery-terracotta);
    font-style: italic;
}

.gallery-intro-right p {
    color: var(--gallery-text);
    font-size: 14px;
    line-height: 2;
    margin: 0 0 25px;
}

.gallery-intro-right a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--gallery-sage);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: 0.3s;
}

.gallery-intro-right a i {
    color: var(--gallery-terracotta);
    transition: transform 0.3s;
}

.gallery-intro-right a:hover {
    color: var(--gallery-terracotta);
}

.gallery-intro-right a:hover i {
    transform: translateX(6px);
}

.gallery-intro-number {
    position: absolute;
    right: 20px;
    bottom: -55px;
    font-family: "Cormorant Garamond", serif;
    font-size: 180px;
    line-height: 1;
    color: rgba(52, 72, 61, 0.035);
    pointer-events: none;
}


/* ==========================================
   MAIN GALLERY SECTION
========================================== */

.gallery-main-section {
    padding: 80px 20px 100px;
    background: var(--gallery-ivory);
}

.gallery-main-section .container {
    max-width: 1200px;
    margin: auto;
}

.gallery-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.gallery-section-heading .section-eyebrow,
.gallery-rooms-heading .section-eyebrow {
    display: block;
    color: var(--gallery-terracotta);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.gallery-section-heading h2,
.gallery-rooms-heading h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.1;
    color: var(--gallery-sage);
    margin: 0;
}

.gallery-section-heading h2 span,
.gallery-rooms-heading h2 span {
    color: var(--gallery-terracotta);
    font-style: italic;
}

.gallery-section-heading > p {
    max-width: 360px;
    color: var(--gallery-text);
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 5px;
}


/* ==========================================
   MASONRY GALLERY
========================================== */

.gallery-masonry {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 18px;
}

.gallery-photo {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e5dfd2;
    cursor: pointer;
    isolation: isolate;
}

.gallery-photo-large {
    grid-row: span 2;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-photo:hover img {
    transform: scale(1.09);
}

.gallery-photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 25px;
    background: linear-gradient(
        to top,
        rgba(20, 32, 25, 0.8),
        rgba(20, 32, 25, 0.12) 65%,
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-photo:hover .gallery-photo-overlay {
    opacity: 1;
}

.gallery-photo-caption {
    transform: translateY(15px);
    transition: transform 0.4s ease;
}

.gallery-photo:hover .gallery-photo-caption {
    transform: translateY(0);
}

.gallery-photo-caption > span {
    display: block;
    color: #e2b58e;
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 9px;
}

.gallery-photo-caption h3 {
    font-family: "Cormorant Garamond", serif;
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    margin: 0;
}

.gallery-photo-zoom {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gallery-terracotta);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    transition: 0.3s;
}

.gallery-photo-zoom:hover {
    background: #fff;
    color: var(--gallery-sage);
}


/* ==========================================
   GALLERY FOOTNOTE
========================================== */

.gallery-footnote {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 28px;
    margin-top: 25px;
    border-top: 1px solid var(--gallery-border);
}

.gallery-footnote > span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gallery-sage);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}

.gallery-footnote > span i {
    color: var(--gallery-terracotta);
}

.gallery-footnote p {
    color: #88897f;
    font-size: 12px;
    margin: 0;
}


/* ==========================================
   ROOM COLLECTION SECTION
========================================== */

.gallery-rooms-section {
    padding: 100px 20px;
    background: var(--gallery-white);
}

.gallery-rooms-section .container {
    max-width: 1200px;
    margin: auto;
}

.gallery-rooms-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 45px;
}

.gallery-rooms-heading > a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gallery-terracotta);
    color: var(--gallery-sage);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.gallery-rooms-heading > a i {
    color: var(--gallery-terracotta);
    transition: transform 0.3s;
}

.gallery-rooms-heading > a:hover {
    color: var(--gallery-terracotta);
}

.gallery-rooms-heading > a:hover i {
    transform: translateX(5px);
}

.gallery-rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-room-card {
    display: block;
    text-decoration: none;
    background: var(--gallery-ivory);
    border: 1px solid var(--gallery-border);
    transition: 0.35s ease;
}

.gallery-room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(52, 72, 61, 0.12);
}

.gallery-room-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e5dfd2;
}

.gallery-room-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-room-card:hover .gallery-room-image img {
    transform: scale(1.08);
}

.gallery-room-arrow {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gallery-white);
    color: var(--gallery-sage);
    border-radius: 50%;
    transform: rotate(45deg);
    transition: 0.3s;
}

.gallery-room-card:hover .gallery-room-arrow {
    background: var(--gallery-terracotta);
    color: #fff;
}

.gallery-room-info {
    padding: 24px 20px;
}

.gallery-room-info > span {
    display: block;
    color: var(--gallery-terracotta);
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.gallery-room-info h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--gallery-sage);
    margin: 0 0 18px;
}

.gallery-room-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gallery-sage);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
}

.gallery-room-info p i {
    color: var(--gallery-terracotta);
    transition: transform 0.3s;
}

.gallery-room-card:hover .gallery-room-info p i {
    transform: translateX(5px);
}


/* ==========================================
   FINAL CTA
========================================== */

.gallery-final-cta {
    position: relative;
    min-height: 420px;
    padding: 90px 20px;
    margin-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url("../assets/images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.gallery-final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 49, 38, 0.88);
}

.gallery-final-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: auto;
}

.gallery-final-content .section-eyebrow {
    display: block;
    color: #dfb18c;
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.gallery-final-content h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 500;
    color: #fff;
    margin: 0 0 18px;
}

.gallery-final-content h2 span {
    display: block;
    color: #e2b58e;
    font-style: italic;
}

.gallery-final-content > p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 32px;
}

.gallery-final-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.gallery-final-primary,
.gallery-final-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 16px 25px;
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    transition: 0.3s ease;
}

.gallery-final-primary {
    background: var(--gallery-terracotta);
    color: #fff;
}

.gallery-final-primary:hover {
    background: #fff;
    color: var(--gallery-sage);
    transform: translateY(-3px);
}

.gallery-final-secondary {
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
}

.gallery-final-secondary:hover {
    background: #fff;
    color: var(--gallery-sage);
}


/* ==========================================
   IMAGE LIGHTBOX
========================================== */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 80px;
    background: rgba(13, 20, 15, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox > img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

.image-lightbox.active > img {
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 3;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.lightbox-close {
    top: 22px;
    right: 32px;
    font-size: 43px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    padding: 18px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #e2b58e;
}

.lightbox-prev:hover {
    transform: translate(-4px, -50%);
}

.lightbox-next:hover {
    transform: translate(4px, -50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    letter-spacing: 2px;
}


/* ==========================================
   RESPONSIVE - TABLET
========================================== */

@media (max-width: 1100px) {

    .gallery-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-room-image {
        height: 270px;
    }

    .gallery-intro-card {
        gap: 40px;
        padding: 50px 40px;
    }

}


@media (max-width: 850px) {

    .gallery-hero {
        min-height: 540px;
    }

    .gallery-hero-side-note {
        display: none;
    }

    .gallery-intro-card {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .gallery-section-heading > p {
        max-width: 520px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 300px 220px 220px;
    }

    .gallery-photo-large {
        grid-column: span 2;
        grid-row: auto;
    }

    .gallery-rooms-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* ==========================================
   RESPONSIVE - MOBILE
========================================== */

@media (max-width: 600px) {

    .gallery-hero {
        min-height: 470px;
        background-position: center;
    }

    .gallery-hero-content {
        padding: 70px 22px;
    }

    .gallery-hero-text h1 {
        font-size: 57px;
    }

    .gallery-hero-text p {
        font-size: 13px;
    }

    .gallery-hero-eyebrow {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .gallery-breadcrumb {
        padding: 15px;
    }

    .gallery-intro {
        padding: 55px 15px 35px;
    }

    .gallery-intro-card {
        padding: 40px 25px;
        gap: 22px;
    }

    .gallery-intro-left h2 {
        font-size: 40px;
    }

    .gallery-intro-right p {
        font-size: 13px;
    }

    .gallery-intro-number {
        font-size: 120px;
        bottom: -35px;
    }

    .gallery-main-section {
        padding: 55px 15px 70px;
    }

    .gallery-section-heading h2,
    .gallery-rooms-heading h2 {
        font-size: 40px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 240px 170px 170px;
        gap: 10px;
    }

    .gallery-photo-overlay {
        padding: 12px;
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(20, 32, 25, 0.75),
            transparent 80%
        );
    }

    .gallery-photo-caption {
        transform: none;
    }

    .gallery-photo-caption > span {
        font-size: 7px;
        letter-spacing: 1px;
    }

    .gallery-photo-caption h3 {
        font-size: 19px;
    }

    .gallery-photo-zoom {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .gallery-footnote {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gallery-rooms-section {
        padding: 65px 15px;
    }

    .gallery-rooms-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-room-image {
        height: 250px;
    }

    .gallery-room-info {
        padding: 22px;
    }

    .gallery-final-cta {
        min-height: 380px;
        padding: 65px 18px;
        margin-bottom: 45px;
    }

    .gallery-final-content h2 {
        font-size: 40px;
    }

    .gallery-final-buttons {
        flex-direction: column;
    }

    .gallery-final-primary,
    .gallery-final-secondary {
        width: 100%;
    }

    .image-lightbox {
        padding: 55px 15px;
    }

    .image-lightbox > img {
        max-width: 100%;
        max-height: 72vh;
    }

    .lightbox-close {
        top: 15px;
        right: 18px;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }

}
