/*
=========================================================
 CLASSIC PICTURES
 PROFESSIONAL GALLERY CSS
=========================================================
 FILE: gallery.css
=========================================================
*/


/*
=========================================================
 RESET
=========================================================
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #ffffff;

    color: #171717;

    line-height: 1.6;
}


body.viewer-open {
    overflow: hidden;
}


img {
    max-width: 100%;
    display: block;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


/*
=========================================================
 HEADER
=========================================================
*/

.gallery-header {
    position: sticky;

    top: 0;

    left: 0;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.97);

    border-bottom:
        1px solid #eeeeee;

    z-index: 5000;

    backdrop-filter:
        blur(12px);
}


.gallery-header-container {
    width: min(
        1400px,
        94%
    );

    margin: 0 auto;

    min-height: 86px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.gallery-logo {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}


.gallery-logo img {
    width: 54px;

    height: 54px;

    object-fit: contain;
}


.gallery-logo-text {
    display: flex;

    flex-direction: column;

    line-height: 1.1;
}


.gallery-logo-text strong {
    font-size: 17px;

    letter-spacing: 1px;

    color: #171717;
}


.gallery-logo-text small {
    margin-top: 5px;

    font-size: 9px;

    letter-spacing: 2px;

    color: #777777;
}


.gallery-navigation {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    flex: 1;
}


.gallery-navigation a {
    position: relative;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #333333;

    padding: 10px 0;

    transition:
        color 0.25s ease;
}


.gallery-navigation a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: 2px;

    width: 0;

    height: 2px;

    background: #d40000;

    transition:
        width 0.25s ease;
}


.gallery-navigation a:hover,
.gallery-navigation a.active {
    color: #d40000;
}


.gallery-navigation a:hover::after,
.gallery-navigation a.active::after {
    width: 100%;
}


.gallery-header-whatsapp {
    background: #d40000;

    color: #ffffff;

    padding: 12px 18px;

    border-radius: 4px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.7px;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.gallery-header-whatsapp:hover {
    background: #a90000;

    transform: translateY(-2px);
}


/*
=========================================================
 GALLERY HERO
=========================================================
*/

.gallery-hero {
    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background-image:
        url("images/hero/hero1.jpg");

    background-size: cover;

    background-position: center;

    overflow: hidden;
}


.gallery-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.82),
            rgba(0, 0, 0, 0.55)
        );
}


.gallery-hero-content {
    position: relative;

    z-index: 2;

    width: min(
        900px,
        90%
    );

    color: #ffffff;
}


.gallery-eyebrow {
    font-size: 12px;

    letter-spacing: 5px;

    font-weight: 800;

    margin-bottom: 20px;

    color: #ffffff;
}


.gallery-hero h1 {
    font-size:
        clamp(
            45px,
            7vw,
            90px
        );

    line-height: 0.98;

    font-weight: 800;

    letter-spacing: -3px;

    margin-bottom: 25px;
}


.gallery-hero h1 span {
    display: block;

    color: #e00000;
}


.gallery-hero-line {
    width: 75px;

    height: 3px;

    background: #e00000;

    margin:
        0 auto 25px;
}


.gallery-hero-content > p:last-of-type {
    max-width: 700px;

    margin: 0 auto;

    font-size: 17px;

    color:
        rgba(
            255,
            255,
            255,
            0.86
        );
}


.gallery-hero-buttons {
    margin-top: 35px;

    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}


.gallery-hero-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 190px;

    padding: 15px 25px;

    background: #d40000;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    border: 1px solid #d40000;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.gallery-hero-button:hover {
    transform: translateY(-3px);

    background: #ad0000;
}


.gallery-hero-button.outline {
    background: transparent;

    border-color: #ffffff;
}


.gallery-hero-button.outline:hover {
    background: #ffffff;

    color: #171717;
}


/*
=========================================================
 INTRODUCTION
=========================================================
*/

.gallery-introduction {
    width: min(
        1200px,
        92%
    );

    margin: 0 auto;

    padding:
        100px 0 70px;
}


.gallery-section-heading {
    text-align: center;

    max-width: 800px;

    margin: 0 auto;
}


.gallery-section-heading > p {
    color: #d40000;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 12px;
}


.gallery-section-heading h2 {
    font-size:
        clamp(
            32px,
            5vw,
            52px
        );

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin-bottom: 20px;
}


.heading-line {
    width: 65px;

    height: 3px;

    background: #d40000;

    margin:
        0 auto 22px;
}


.gallery-section-heading span {
    display: block;

    color: #666666;

    font-size: 16px;

    line-height: 1.8;
}


/*
=========================================================
 STATISTICS
=========================================================
*/

.gallery-statistics {
    margin-top: 65px;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            1fr
        );

    border-top:
        1px solid #eeeeee;

    border-bottom:
        1px solid #eeeeee;
}


.gallery-stat {
    text-align: center;

    padding: 28px 15px;

    border-right:
        1px solid #eeeeee;
}


.gallery-stat:last-child {
    border-right: none;
}


.gallery-stat strong {
    display: block;

    color: #d40000;

    font-size: 30px;

    line-height: 1;

    margin-bottom: 8px;
}


.gallery-stat span {
    display: block;

    color: #666666;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


/*
=========================================================
 MAIN GALLERY
=========================================================
*/

.main-gallery {
    width: min(
        1500px,
        94%
    );

    margin: 0 auto;

    padding:
        20px 0 110px;
}


/*
=========================================================
 FILTER CONTAINER
=========================================================
*/

.gallery-filter-container {
    padding:
        30px;

    background:
        #f7f7f7;

    border:
        1px solid #eeeeee;

    margin-bottom: 25px;
}


.gallery-filter-title {
    text-align: center;

    margin-bottom: 20px;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #555555;
}


.gallery-filters {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;
}


.gallery-filter {
    appearance: none;

    border: 1px solid #dddddd;

    background: #ffffff;

    color: #333333;

    padding: 11px 18px;

    cursor: pointer;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    transition:
        all 0.25s ease;
}


.gallery-filter:hover {
    border-color: #d40000;

    color: #d40000;
}


.gallery-filter.active {
    background: #d40000;

    color: #ffffff;

    border-color: #d40000;
}


/*
=========================================================
 TOOLBAR
=========================================================
*/

.gallery-toolbar {
    display: flex;

    justify-content: space-between;

    align-items: center;

    padding:
        0 5px 20px;

    color: #777777;

    font-size: 11px;
}


.gallery-toolbar strong {
    color: #d40000;

    font-size: 18px;

    margin-right: 5px;
}


.gallery-toolbar-right {
    font-size: 11px;

    color: #999999;
}


/*
=========================================================
 PROFESSIONAL GALLERY GRID
=========================================================
*/

.professional-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;
}


.professional-gallery-item {
    cursor: pointer;

    background: #ffffff;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.professional-gallery-item:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px
        rgba(
            0,
            0,
            0,
            0.12
        );
}


.professional-gallery-item.hidden {
    display: none;
}


.professional-photo-wrapper {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eeeeee;
}


.professional-photo-wrapper img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.65s ease;
}


.professional-gallery-item:hover
.professional-photo-wrapper img {
    transform:
        scale(1.07);
}


/*
=========================================================
 PHOTO OVERLAY
=========================================================
*/

.professional-photo-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(
            0,
            0,
            0,
            0.48
        );

    opacity: 0;

    transition:
        opacity 0.3s ease;
}


.professional-gallery-item:hover
.professional-photo-overlay {
    opacity: 1;
}


.photo-overlay-content {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    color: #ffffff;
}


.photo-view-symbol {
    width: 52px;

    height: 52px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.8
        );

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 30px;

    font-weight: 300;
}


.photo-overlay-content strong {
    font-size: 10px;

    letter-spacing: 2px;
}


/*
=========================================================
 CATEGORY LABEL
=========================================================
*/

.photo-category-label {
    position: absolute;

    left: 12px;

    bottom: 12px;

    padding: 7px 10px;

    background:
        rgba(
            212,
            0,
            0,
            0.92
        );

    color: #ffffff;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}


/*
=========================================================
 PHOTO CAPTION
=========================================================
*/

.professional-photo-caption {
    padding:
        14px 15px 17px;

    border:
        1px solid #eeeeee;

    border-top: none;
}


.professional-photo-caption span {
    display: block;

    font-size: 8px;

    font-weight: 800;

    color: #d40000;

    letter-spacing: 1.5px;

    margin-bottom: 4px;
}


.professional-photo-caption h3 {
    font-size: 15px;

    color: #222222;

    font-weight: 700;
}


/*
=========================================================
 EMPTY GALLERY
=========================================================
*/

.gallery-empty {
    display: none;

    text-align: center;

    padding:
        100px 20px;

    border:
        1px solid #eeeeee;

    background: #fafafa;
}


.gallery-empty.show {
    display: block;
}


.gallery-empty-icon {
    font-size: 50px;

    margin-bottom: 15px;
}


.gallery-empty h3 {
    font-size: 24px;

    margin-bottom: 8px;
}


.gallery-empty p {
    color: #777777;
}


/*
=========================================================
 CALL TO ACTION
=========================================================
*/

.gallery-cta {
    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #ffffff;

    background-image:
        url("images/hero/hero2.jpg");

    background-size: cover;

    background-position: center;

    overflow: hidden;
}


.gallery-cta-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(
            0,
            0,
            0,
            0.78
        );
}


.gallery-cta-content {
    position: relative;

    z-index: 2;

    width: min(
        850px,
        90%
    );
}


.gallery-cta-content > p:first-child {
    font-size: 10px;

    letter-spacing: 4px;

    font-weight: 800;

    margin-bottom: 18px;
}


.gallery-cta h2 {
    font-size:
        clamp(
            35px,
            6vw,
            65px
        );

    line-height: 1.05;

    letter-spacing: -2px;
}


.gallery-cta h2 span {
    display: block;

    color: #e00000;
}


.gallery-cta-line {
    width: 65px;

    height: 3px;

    background: #d40000;

    margin:
        25px auto;
}


.gallery-cta-description {
    max-width: 650px;

    margin: 0 auto;

    color:
        rgba(
            255,
            255,
            255,
            0.8
        );

    font-size: 16px;
}


.gallery-cta-buttons {
    margin-top: 30px;

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;
}


.gallery-cta-button {
    padding: 15px 25px;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

    border: 1px solid #ffffff;

    transition:
        all 0.25s ease;
}


.gallery-cta-button.primary {
    background: #d40000;

    border-color: #d40000;
}


.gallery-cta-button.primary:hover {
    background: #a90000;

    border-color: #a90000;

    transform: translateY(-3px);
}


.gallery-cta-button.whatsapp:hover {
    background: #ffffff;

    color: #111111;

    transform: translateY(-3px);
}


/*
=========================================================
 FOOTER
=========================================================
*/

.gallery-footer {
    background: #111111;

    color: #ffffff;
}


.gallery-footer-container {
    width: min(
        1300px,
        92%
    );

    margin: 0 auto;

    padding:
        65px 0 45px;

    display: grid;

    grid-template-columns:
        1.3fr 1fr 1.2fr;

    gap: 60px;
}


.gallery-footer-brand {
    display: flex;

    align-items: center;

    gap: 15px;
}


.gallery-footer-brand img {
    width: 60px;

    height: 60px;

    object-fit: contain;
}


.gallery-footer-brand h3 {
    font-size: 17px;

    letter-spacing: 1px;
}


.gallery-footer-brand p {
    color: #999999;

    font-size: 12px;
}


.gallery-footer-links {
    display: flex;

    flex-wrap: wrap;

    align-content: flex-start;

    gap: 15px 25px;
}


.gallery-footer-links a {
    color: #cccccc;

    font-size: 11px;

    transition:
        color 0.25s ease;
}


.gallery-footer-links a:hover {
    color: #e00000;
}


.gallery-footer-contact {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.gallery-footer-contact strong {
    color: #e00000;

    font-size: 10px;

    letter-spacing: 2px;
}


.gallery-footer-contact span {
    color: #999999;

    font-size: 12px;

    line-height: 1.8;
}


.gallery-footer-bottom {
    width: min(
        1300px,
        92%
    );

    margin: 0 auto;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.1
        );

    padding:
        22px 0;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #777777;

    font-size: 10px;
}


.gallery-footer-bottom span {
    color: #999999;
}


/*
=========================================================
 PHOTO VIEWER
=========================================================
*/

.photo-viewer {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(
            0,
            0,
            0,
            0.96
        );
}


.photo-viewer.active {
    display: flex;
}


.viewer-main {
    width: min(
        1200px,
        90vw
    );

    max-height: 90vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


.viewer-image-container {
    width: 100%;

    height: 78vh;

    display: flex;

    align-items: center;

    justify-content: center;
}


.viewer-image-container img {
    max-width: 100%;

    max-height: 100%;

    width: auto;

    height: auto;

    object-fit: contain;

    box-shadow:
        0 25px 80px
        rgba(
            0,
            0,
            0,
            0.45
        );
}


.viewer-information {
    width: 100%;

    margin-top: 15px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color: #ffffff;
}


.viewer-category {
    display: block;

    color: #e00000;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 3px;
}


.viewer-information h3 {
    font-size: 18px;

    font-weight: 600;
}


.viewer-counter {
    white-space: nowrap;

    font-size: 12px;

    color: #cccccc;
}


.viewer-close,
.viewer-prev,
.viewer-next {
    position: absolute;

    border: none;

    background:
        rgba(
            255,
            255,
            255,
            0.1
        );

    color: #ffffff;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.viewer-close:hover,
.viewer-prev:hover,
.viewer-next:hover {
    background:
        rgba(
            212,
            0,
            0,
            0.9
        );
}


.viewer-close {
    top: 25px;

    right: 30px;

    width: 48px;

    height: 48px;

    border-radius: 50%;

    font-size: 32px;

    font-weight: 200;

    z-index: 10;
}


.viewer-prev,
.viewer-next {
    top: 50%;

    transform:
        translateY(-50%);

    width: 55px;

    height: 70px;

    font-size: 30px;

    z-index: 10;
}


.viewer-prev {
    left: 25px;
}


.viewer-next {
    right: 25px;
}


.viewer-prev:hover,
.viewer-next:hover {
    transform:
        translateY(-50%)
        scale(1.05);
}


/*
=========================================================
 FLOATING WHATSAPP
=========================================================
*/

.gallery-floating-whatsapp {
    position: fixed;

    right: 22px;

    bottom: 22px;

    z-index: 4000;

    display: flex;

    align-items: center;

    gap: 8px;

    background: #128c7e;

    color: #ffffff;

    padding:
        13px 18px;

    border-radius: 30px;

    box-shadow:
        0 8px 25px
        rgba(
            0,
            0,
            0,
            0.2
        );

    transition:
        transform 0.25s ease;
}


.gallery-floating-whatsapp:hover {
    transform:
        translateY(-4px);
}


.gallery-floating-whatsapp span {
    font-size: 18px;
}


.gallery-floating-whatsapp strong {
    font-size: 11px;

    letter-spacing: 0.5px;
}


/*
=========================================================
 IMAGE ERROR
=========================================================
*/

.professional-gallery-item.image-error
.professional-photo-wrapper {
    background:
        #eeeeee;
}


.professional-gallery-item.image-error
.professional-photo-wrapper::after {
    content:
        "PHOTO UNAVAILABLE";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999999;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


/*
=========================================================
 RESPONSIVE
=========================================================
*/

@media (
    max-width: 1100px
) {

    .gallery-navigation {
        gap: 18px;
    }


    .professional-gallery-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }


    .gallery-footer-container {
        grid-template-columns:
            1fr 1fr;
    }

}


@media (
    max-width: 850px
) {

    .gallery-header-container {
        min-height: 74px;
    }


    .gallery-navigation {
        display: none;
    }


    .gallery-logo img {
        width: 48px;

        height: 48px;
    }


    .gallery-logo-text strong {
        font-size: 14px;
    }


    .gallery-header-whatsapp {
        padding:
            10px 13px;

        font-size: 9px;
    }


    .gallery-hero {
        min-height: 540px;
    }


    .gallery-statistics {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }


    .gallery-stat:nth-child(2) {
        border-right: none;
    }


    .gallery-stat:nth-child(-n + 2) {
        border-bottom:
            1px solid #eeeeee;
    }


    .professional-gallery-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        gap: 12px;
    }


    .gallery-footer-container {
        grid-template-columns:
            1fr;

        gap: 35px;
    }


    .viewer-prev {
        left: 10px;
    }


    .viewer-next {
        right: 10px;
    }


    .viewer-image-container {
        height: 70vh;
    }

}


@media (
    max-width: 560px
) {

    .gallery-header-whatsapp {
        display: none;
    }


    .gallery-header-container {
        justify-content: center;
    }


    .gallery-hero {
        min-height: 500px;
    }


    .gallery-hero h1 {
        letter-spacing: -2px;
    }


    .gallery-hero-content > p:last-of-type {
        font-size: 14px;
    }


    .gallery-hero-button {
        width: 100%;

        min-width: 0;
    }


    .gallery-introduction {
        padding-top: 70px;
    }


    .gallery-stat strong {
        font-size: 24px;
    }


    .gallery-stat span {
        font-size: 8px;
    }


    .gallery-filter-container {
        padding: 20px 12px;
    }


    .gallery-filters {
        gap: 6px;
    }


    .gallery-filter {
        padding:
            9px 11px;

        font-size: 8px;
    }


    .gallery-toolbar-right {
        display: none;
    }


    .professional-gallery-grid {
        grid-template-columns:
            1fr;

        gap: 18px;
    }


    .professional-photo-wrapper {
        aspect-ratio: 4 / 3;
    }


    .gallery-cta {
        min-height: 550px;
    }


    .gallery-cta h2 {
        letter-spacing: -1px;
    }


    .gallery-footer-bottom {
        flex-direction: column;

        text-align: center;
    }


    .photo-viewer {
        padding:
            15px;
    }


    .viewer-main {
        width: 100%;

        max-height: 88vh;
    }


    .viewer-image-container {
        height: 72vh;
    }


    .viewer-information h3 {
        font-size: 14px;
    }


    .viewer-close {
        top: 12px;

        right: 12px;

        width: 42px;

        height: 42px;

        font-size: 28px;
    }


    .viewer-prev,
    .viewer-next {
        width: 42px;

        height: 55px;

        font-size: 22px;
    }


    .viewer-prev {
        left: 5px;
    }


    .viewer-next {
        right: 5px;
    }


    .gallery-floating-whatsapp {
        right: 12px;

        bottom: 12px;

        padding:
            11px 14px;
    }


    .gallery-floating-whatsapp strong {
        font-size: 10px;
    }

}


/*
=========================================================
 ACCESSIBILITY
=========================================================
*/

.gallery-filter:focus-visible,
.gallery-hero-button:focus-visible,
.gallery-cta-button:focus-visible,
.gallery-navigation a:focus-visible,
.viewer-close:focus-visible,
.viewer-prev:focus-visible,
.viewer-next:focus-visible {
    outline:
        3px solid #ff4444;

    outline-offset: 3px;
}


/*
=========================================================
 REDUCED MOTION
=========================================================
*/

@media (
    prefers-reduced-motion: reduce
) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}