﻿
/* ==============================================
   LUCKNOW ESTATES - PREMIUM GALLERY SECTION
   Theme: Dark Navy Blue + Gold
   Images: Square 1500 x 1500 px
============================================== */

.le-gallery,
.le-gallery * {
    box-sizing: border-box;
}

.le-gallery {
    --le-navy: #081b2e;
    --le-navy-light: #10283d;
    --le-gold: #e7b45e;
    --le-white: #f7f8fc;
    --le-muted: #bdcada;

    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;

    padding: 85px 24px 55px;

    background-color: var(--le-navy);
    color: var(--le-white);

    font-family: Arial, Helvetica, sans-serif;
}

/* Decorative background */

.le-gallery::before {
    content: "";
    position: absolute;

    width: 430px;
    height: 430px;

    top: -285px;
    left: -140px;

    border: 1px solid rgba(231, 180, 94, 0.09);
    border-radius: 50%;

    z-index: -1;
    pointer-events: none;
}

.le-gallery::after {
    content: "";
    position: absolute;

    width: 330px;
    height: 330px;

    right: -150px;
    bottom: -220px;

    border: 1px solid rgba(231, 180, 94, 0.08);
    border-radius: 50%;

    z-index: -1;
    pointer-events: none;
}

/* Main container - reduced width */

.le-gallery-container {
    position: relative;

    width: 100%;
    max-width: 1080px;

    margin-right: auto;
    margin-left: auto;
}

/* ==============================================
   HEADING
============================================== */

.le-gallery-header {
    display: block;
    width: 100%;
    margin-bottom: 35px;
}

.le-gallery-heading {
    width: 100%;
    max-width: 850px;
}

.le-gallery-eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 19px;

    color: var(--le-gold);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.7;
}

.le-gallery-line {
    display: inline-block;

    width: 30px;
    height: 1px;

    flex-shrink: 0;

    background: var(--le-gold);
}

/* Main heading */

.le-gallery-heading h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;

    margin: 0;
    padding: 0;

    color: var(--le-white);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 3.8vw, 49px);
    font-weight: 400;

    line-height: 1.15;
    letter-spacing: -0.8px;
}

.le-gallery-heading h2 span {
    display: block;
    max-width: 100%;
}

.le-gallery-heading h2 .le-heading-gold {
    color: var(--le-gold);
}

/* Tagline */

.le-gallery-tagline {
    margin: 17px 0 0;

    color: var(--le-gold);

    font-size: 12px;
    font-weight: 700;

    line-height: 1.8;
    letter-spacing: 2px;
}

/* Supporting paragraph */

.le-gallery-description {
    max-width: 620px;

    margin: 13px 0 0;

    color: var(--le-muted);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.9;
}

/* ==============================================
   GALLERY GRID
============================================== */

.le-gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
    width: 100%;
}

/* All images equal and square */

.le-gallery-card,
.le-gallery-card.le-gallery-featured {
    position: relative;

    display: block;

    width: 100%;
    min-width: 0;
    min-height: 0;

    aspect-ratio: 1 / 1;

    grid-column: auto;
    grid-row: auto;

    overflow: hidden;

    border: 1px solid rgba(231, 180, 94, 0.25);
    border-radius: 4px;

    background: var(--le-navy-light);

    color: #ffffff;
    text-decoration: none;

    isolation: isolate;
}

/* Square image display */

.le-gallery-card img {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.55s ease;
}

/* Image overlay */

.le-gallery-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 17px;

    background: linear-gradient(
        180deg,
        rgba(5, 17, 29, 0.18) 0%,
        rgba(5, 17, 29, 0.06) 35%,
        rgba(5, 17, 29, 0.88) 100%
    );

    transition: background 0.3s ease;
}

/* Image category label */

.le-gallery-number {
    display: inline-flex;
    align-self: flex-start;

    max-width: 100%;

    padding: 7px 9px;

    border: 1px solid rgba(231, 180, 94, 0.7);
    border-radius: 2px;

    background: rgba(8, 27, 46, 0.78);

    color: var(--le-gold);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Card bottom */

.le-gallery-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
    width: 100%;
}

.le-gallery-card-bottom h3 {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 400;

    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Arrow */

.le-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border: 1px solid rgba(231, 180, 94, 0.8);
    border-radius: 50%;

    color: var(--le-gold);
    font-size: 18px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Hover effect */

.le-gallery-card:hover img {
    transform: scale(1.055);
}

.le-gallery-card:hover .le-gallery-arrow {
    background-color: var(--le-gold);
    color: var(--le-navy);
}

.le-gallery-card:focus-visible {
    outline: 2px solid var(--le-gold);
    outline-offset: 4px;
}

/* ==============================================
   FOOTER
============================================== */

.le-gallery-footer {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;
    margin-top: 35px;
}

.le-gallery-footer-line {
    display: block;

    width: 38px;
    height: 1px;

    flex-shrink: 0;

    background: rgba(231, 180, 94, 0.65);
}

.le-gallery-footer p {
    margin: 0;

    color: var(--le-white);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;
    line-height: 1.9;
    text-align: center;
}

.le-gallery-footer p span {
    color: var(--le-gold);
}

/* ==============================================
   TABLET - 2 COLUMNS
============================================== */

@media (max-width: 1024px) {

    .le-gallery {
        padding: 70px 24px 48px;
    }

    .le-gallery-container {
        max-width: 760px;
    }

    .le-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .le-gallery-heading h2 {
        font-size: clamp(34px, 5vw, 45px);
    }

    .le-gallery-card-bottom h3 {
        font-size: 19px;
    }

}

/* ==============================================
   MOBILE
============================================== */

@media (max-width: 767px) {

    .le-gallery {
        padding: 50px 18px 38px;
    }

    .le-gallery-container {
        max-width: 480px;
    }

    .le-gallery-header {
        margin-bottom: 25px;
    }

    .le-gallery-eyebrow {
        gap: 8px;
        margin-bottom: 15px;

        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .le-gallery-line {
        width: 22px;
    }

    .le-gallery-heading h2 {
        gap: 3px;

        font-size: clamp(27px, 7.2vw, 38px);
        line-height: 1.2;
        letter-spacing: -0.4px;
    }

    .le-gallery-tagline {
        margin-top: 13px;

        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .le-gallery-description {
        margin-top: 10px;

        font-size: 13px;
        line-height: 1.8;
    }

    .le-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .le-gallery-overlay {
        padding: 11px;
    }

    .le-gallery-number {
        padding: 5px 6px;

        font-size: 8px;
        letter-spacing: 0.5px;
    }

    .le-gallery-card-bottom {
        gap: 6px;
    }

    .le-gallery-card-bottom h3 {
        font-size: 14px;
        line-height: 1.35;
    }

    .le-gallery-arrow {
        width: 27px;
        height: 27px;

        flex-basis: 27px;

        font-size: 14px;
    }

    .le-gallery-footer {
        gap: 9px;
        margin-top: 25px;
    }

    .le-gallery-footer-line {
        width: 17px;
    }

    .le-gallery-footer p {
        font-size: 8px;
        letter-spacing: 0.7px;
    }

}

/* ==============================================
   SMALL MOBILE
============================================== */

@media (max-width: 380px) {

    .le-gallery {
        padding-right: 12px;
        padding-left: 12px;
    }

    .le-gallery-container {
        max-width: 100%;
    }

    .le-gallery-grid {
        gap: 8px;
    }

    .le-gallery-overlay {
        padding: 8px;
    }

    .le-gallery-number {
        font-size: 7px;
        letter-spacing: 0.3px;
    }

    .le-gallery-card-bottom h3 {
        font-size: 12px;
    }

    .le-gallery-arrow {
        width: 24px;
        height: 24px;

        flex-basis: 24px;

        font-size: 12px;
    }

    .le-gallery-heading h2 {
        font-size: 27px;
    }

    .le-gallery-footer-line {
        width: 10px;
    }

}

/* ==============================================
   ACCESSIBILITY
============================================== */

@media (prefers-reduced-motion: reduce) {

    .le-gallery-card img,
    .le-gallery-arrow {
        transition: none;
    }

}
