/* =========================================
   PREMIUM GALLERY
========================================= */

.premium-gallery {
    position: relative;
    padding: 110px 20px 120px;
    background: #f7f8fa;
    overflow: hidden;
}

/* Subtle background decoration */
.premium-gallery::before {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(217, 168, 67, 0.06);
    top: -220px;
    left: -180px;
    pointer-events: none;
}

.premium-gallery::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(40, 94, 142, 0.05);
    bottom: -220px;
    right: -180px;
    pointer-events: none;
}


/* Container */

.gallery-container {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================
   HEADING
========================================= */

.gallery-heading {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.gallery-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    color: #b68a2c;
}

.gallery-eyebrow::before,
.gallery-eyebrow::after {
    content: "";
    width: 25px;
    height: 1px;
    background: #c7a44d;
}

.gallery-heading h2 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 5vw, 45px);
    line-height: 1;
    font-weight: 500;

    color: #173b5c;
}

.heading-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 22px auto 20px;
}

.heading-line span {
    width: 32px;
    height: 1px;
    background: #d1b05b;
}

.heading-line i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d1b05b;
}

.gallery-heading p {
    max-width: 580px;
    margin: 0 auto;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #6c7480;
}


/* =========================================
   GALLERY GRID
========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}


/* =========================================
   CARD
========================================= */

.gallery-card {
    display: block;
    position: relative;

    text-decoration: none;

    background: #ffffff;

    border: 1px solid rgba(22, 58, 88, 0.10);

    box-shadow:
        0 12px 35px rgba(24, 46, 67, 0.07);

    transition:
        transform 0.45s cubic-bezier(.2,.7,.2,1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;

    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-10px);

    border-color: rgba(196, 157, 66, 0.35);

    box-shadow:
        0 25px 55px rgba(24, 46, 67, 0.14);
}


/* =========================================
   IMAGE
========================================= */

.gallery-image {
    position: relative;
    height: 330px;
    overflow: hidden;
    background: #dfe4e8;
}

.gallery-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.2,.7,.2,1);
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.07);
}


/* Dark / gold overlay */

.image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 31, 48, 0.08) 0%,
            rgba(10, 31, 48, 0.03) 40%,
            rgba(10, 31, 48, 0.72) 100%
        );

    transition: background 0.45s ease;
}

.gallery-card:hover .image-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(10, 31, 48, 0.15) 0%,
            rgba(10, 31, 48, 0.12) 40%,
            rgba(10, 31, 48, 0.82) 100%
        );
}


/* Number */

.card-number {
    position: absolute;
    top: 22px;
    left: 22px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,0.45);

    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* View Icon */

.view-icon {
    position: absolute;
    top: 22px;
    right: 22px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #173b5c;

    transform: translateY(-10px);
    opacity: 0;

    transition:
        opacity 0.35s ease,
        transform 0.4s ease;
}

.view-icon svg {
    width: 20px;
    height: 20px;
}

.gallery-card:hover .view-icon {
    opacity: 1;
    transform: translateY(0);
}


/* Image bottom text */

.image-caption {
    position: absolute;
    left: 25px;
    bottom: 22px;

    overflow: hidden;
}

.image-caption span {
    display: block;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    transform: translateY(120%);
    transition: transform 0.4s ease;
}

.gallery-card:hover .image-caption span {
    transform: translateY(0);
}


/* =========================================
   CARD CONTENT
========================================= */

.gallery-content {
    min-height: 105px;

    padding: 24px 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gallery-category {
    display: block;

    margin-bottom: 8px;

    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;

    color: #b68a2c;
}

.gallery-content h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 500;

    color: #263f53;

    transition: color 0.3s ease;
}

.gallery-card:hover .gallery-content h3 {
    color: #b68a2c;
}


/* Arrow */

.gallery-arrow {
    flex: 0 0 auto;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe3e7;
    border-radius: 50%;

    color: #173b5c;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease;
}

.gallery-arrow svg {
    width: 18px;
    height: 18px;
}

.gallery-card:hover .gallery-arrow {
    background: #b68a2c;
    border-color: #b68a2c;
    color: #ffffff;

    transform: translateX(4px);
}


/* =========================================
   VIEW ALL BUTTON
========================================= */

.gallery-footer {
    display: flex;
    justify-content: center;

    margin-top: 55px;
}

.gallery-btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 16px 27px;

    text-decoration: none;

    background: #173f61;
    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

.gallery-btn::before {
    content: "";

    position: absolute;
    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: #b68a2c;

    transition: left 0.4s ease;

    z-index: 0;
}

.gallery-btn span,
.gallery-btn svg {
    position: relative;
    z-index: 1;
}

.gallery-btn svg {
    width: 18px;
    height: 18px;

    transition: transform 0.3s ease;
}

.gallery-btn:hover::before {
    left: 0;
}

.gallery-btn:hover {
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 12px 28px rgba(23, 63, 97, 0.22);
}

.gallery-btn:hover svg {
    transform: translateX(4px);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 767px) {

    .premium-gallery {
        padding: 75px 18px 80px;
    }

    .gallery-heading {
        margin-bottom: 40px;
    }

    .gallery-heading h2 {
        font-size: 44px;
    }

    .gallery-heading p {
        font-size: 14px;
        line-height: 1.7;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gallery-image {
        height: 270px;
    }

    .gallery-content {
        min-height: 95px;
        padding: 20px;
    }

    .gallery-content h3 {
        font-size: 22px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
    }

    .gallery-footer {
        margin-top: 38px;
    }
}


@media (max-width: 420px) {

    .gallery-image {
        height: 235px;
    }

    .gallery-content h3 {
        font-size: 20px;
    }

    .gallery-category {
        font-size: 9px;
    }

    .card-number {
        top: 15px;
        left: 15px;
    }

    .view-icon {
        top: 15px;
        right: 15px;
    }
}
