/*===============================================================================================
  COLOR VARIABLES
================================================================================================*/

:root {
    --red-color: #9D0514;
    --red-hover-color: #B72836;
    --red-active-color: #8C1A25;

    --white-color: #EFEFEF;
    --pure-white-color: #FFFFFF;
    --black-color: #000000;

    --yellow-color: #F6BE56;

    --transparent-color: transparent;
}


/*===============================================================================================
  RESET & GLOBAL STYLES
================================================================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    border: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.break {
    display: none;
}

.copyright-break {
    display: none;
}


/*===============================================================================================
  HEADER & NAVIGATION
================================================================================================*/

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 36px;
    padding-left: 70px;
    padding-right: 70px;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .logo,
header #hamburger-menu,
header li > a,
header .nav-contact-button {
    transition: opacity 0.25s ease;
}

header.is-scrolled .logo,
header.is-scrolled #hamburger-menu,
header.is-scrolled li > a,
header.is-scrolled .nav-contact-button {
    opacity: 0.45;
}

header.is-scrolled .logo:hover,
header.is-scrolled .logo:focus-visible,
header.is-scrolled #hamburger-menu:hover,
header.is-scrolled #hamburger-menu:focus-visible,
header.is-scrolled li > a:hover,
header.is-scrolled li > a:focus-visible,
header.is-scrolled .nav-contact-button:hover,
header.is-scrolled .nav-contact-button:focus-visible {
    opacity: 1;
}

header ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
    gap: 50px;
    align-items: center;
}

header li {
    font-family: poppins, sans-serif;
    font-weight: 400;
    font-style: normal;
}

header li a {
    color: var(--black-color);
    text-decoration: none;
    position: relative;
}

#hamburger-menu {
    display: none;
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    line-height: 0;
}

#hamburger-menu:hover,
#hamburger-menu:active {
    background-color: transparent;
}

#hamburger-menu img {
    width: 34px;
    height: auto;
}


/*-----------------------------------------------------------------------------------------------
  Active Navigation Link
------------------------------------------------------------------------------------------------*/

header li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
    height: 3px;
    background-color: var(--red-color);
    border-radius: 10px;
    transition: transform 0.25s ease;
}

header li a.active::after {
    transform: translateX(-50%) scaleX(1);
}


/*-----------------------------------------------------------------------------------------------
  Header Button
------------------------------------------------------------------------------------------------*/
.logo {
    height: 51px;
    width: auto;
}

header .nav-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: poppins, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    background-color: var(--red-color);
    color: var(--white-color);
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 13px;
    padding-bottom: 13px;
    border-radius: 3px;
    text-decoration: none;
    transition: opacity 0.25s ease, background-color 0.3s ease;
}

header .nav-contact-button:hover {
    background-color: var(--red-hover-color);
}

header .nav-contact-button:active {
    background-color: var(--red-active-color);
}

header .nav-contact-button {
    color: var(--white-color);
}
/*===============================================================================================
  GALLERY INTRO
================================================================================================*/

.gallery-intro {
    max-width: 680px;
    margin: 190px auto 47px;
    padding: 0 20px;
    text-align: center;
}

.gallery-intro h1 {
    margin: 0 0 7px;
    font-family: poppins, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 36px;
}

.gallery-title-break {
    display: none;
}

.gallery-intro p {
    margin: 0 auto;
    max-width: 540px;
    font-family: poppins, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
}

/*===============================================================================================
  RESPONSIVE NAVIGATION & MOBILE MENU
================================================================================================*/

@media (max-width: 1249px) {
    #navbar-links {
        display: none;
    }

    #hamburger-menu {
        display: block;
    }

    .mobile-menu-backdrop[hidden],
    .mobile-menu[hidden] {
        display: none !important;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgb(0 0 0 / 62%);
        animation: mobile-menu-fade-in 0.2s ease-out both;
    }

    .mobile-menu-backdrop.is-closing {
        animation: mobile-menu-fade-out 0.2s ease-in both;
        pointer-events: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1101;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: min(68.4vw, 420px);
        height: 100vh;
        height: 100dvh;
        padding: 31.4vh 31px 32px;
        overflow-y: auto;
        background-color: var(--pure-white-color);
        animation: mobile-menu-slide-in 0.24s ease-out both;
    }

    .mobile-menu.is-closing {
        animation: mobile-menu-slide-out 0.24s ease-in both;
        pointer-events: none;
    }

    .mobile-menu-content {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        transform: scale(0.9);
        transform-origin: top left;
    }

    .mobile-menu ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 35px;
        padding: 0;
        list-style: none;
    }

    .mobile-menu-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: #111;
        font-family: poppins, sans-serif;
        font-size: 16.723px;
        font-weight: 400;
        letter-spacing: 5.3514px;
        line-height: normal;
        text-decoration: none;
        text-transform: uppercase;
    }

    .mobile-menu-link.active::after {
        position: absolute;
        right: 0;
        bottom: -7px;
        left: 29px;
        width: auto;
        height: 3px;
        border-radius: 3px;
        background-color: var(--red-color);
        content: "";
    }

    .mobile-menu-icon {
        display: block;
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        object-fit: contain;
    }

    .mobile-menu-contact {
        display: flex;
        width: 100%;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        max-width: 191px;
        min-height: 41px;
        margin-top: 45px;
        border-radius: 2px;
        background-color: var(--red-color);
        color: var(--pure-white-color);
        font-family: poppins, sans-serif;
        font-size: 16px;
        font-weight: 500;
        padding: 10px 25px;
        text-decoration: none;
        text-transform: uppercase;
        transition: background-color 0.2s ease;
    }

    .mobile-menu-contact:hover {
        background-color: var(--red-hover-color);
    }

    @keyframes mobile-menu-slide-in {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    @keyframes mobile-menu-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes mobile-menu-slide-out {
        from { transform: translateX(0); }
        to { transform: translateX(100%); }
    }

    @keyframes mobile-menu-fade-out {
        from { opacity: 1; }
        to { opacity: 0; }
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    header.is-scrolled .logo {
        opacity: 0;
    }

    header.is-scrolled #hamburger-menu {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu,
    .mobile-menu-backdrop {
        animation-duration: 0.01ms !important;
    }
}

/*===============================================================================================
  RESPONSIVE GALLERY INTRO
================================================================================================*/

@media (max-width: 950px) {
    .gallery-intro {
        width: min(280px, calc(100% - 40px));
        max-width: none;
        padding: 0;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .gallery-intro h1 {
        font-size: 30px;
        line-height: 37px;
    }

    .gallery-title-break {
        display: block;
    }

    .gallery-intro p {
        max-width: 100%;
        margin: 0;
        font-size: 13px;
    }
}

/*===============================================================================================
  GALLERY CAROUSEL & PHOTO PREVIEW
================================================================================================*/

.gallery-carousel-section {
    width: 100%;
    padding-bottom: 80px;
    overflow: hidden;
}

.gallery-track-row {
    width: 100%;
    overflow: hidden;
    margin-bottom: 22px;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
}

.gallery-track-row:last-child {
    margin-bottom: 0;
}

.gallery-track-row.is-dragging {
    cursor: grabbing;
}

.gallery-track {
    display: flex;
    width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.gallery-image-set {
    display: flex;
    flex: 0 0 auto;
    gap: 24px;
    padding-right: 24px;
}

.gallery-photo {
    display: grid;
    place-items: center;
    flex: 0 0 clamp(220px, 25vw, 330px);
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #eee8e3, #d8e1e8);
    color: #555;
    font-family: poppins, sans-serif;
    font-size: 14px;
    cursor: zoom-in;
}

.gallery-photo.is-placeholder {
    cursor: default;
}

.gallery-photo:focus-visible {
    outline: 3px solid var(--red-color);
    outline-offset: 3px;
}

.gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center ;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-preview {
    position: fixed;
    inset: 0;
    width: min(92vw, 1100px);
    max-width: none;
    max-height: 92vh;
    margin: auto;
    padding: 56px 20px 20px;
    overflow: visible;
    border: 0;
    background: transparent;
    color: var(--pure-white-color);
}

.gallery-preview::backdrop {
    background: rgb(0 0 0 / 82%);
}

.gallery-preview img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 76px);
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
}

.gallery-preview-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 0;
    color: var(--pure-white-color);
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 600px) {
    .gallery-image-set {
        gap: 16px;
        padding-right: 16px;
    }

    .gallery-track-row {
        margin-bottom: 16px;
    }

    .gallery-preview {
        padding: 52px 12px 12px;
    }
}

/*===============================================================================================
  GALLERY RESOURCES
================================================================================================*/

.gallery-resources {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 97px 20px 172px;
    background-color: var(--white-color);
}

.gallery-resources > h2 {
    margin: 0 0 43px;
    font-family: poppins, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 37px;
    text-align: center;
}

.resources-card {
    width: min(572px, 100%);
    min-height: 483px;
    padding: 35px 58px 72px;
    border-radius: 3px;
    background-color: var(--pure-white-color);
}

.resources-card h3 {
    margin: 0 0 52px;
    font-family: poppins, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 19.738px;
    letter-spacing: 6.3162px;
    text-align: center;
    text-transform: uppercase;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    list-style: none;
}

.resource-list li {
    display: grid;
    grid-template-columns: 301px auto;
    align-items: center;
    column-gap: 52px;
    font-family: poppins, sans-serif;
    font-weight: 400;
    font-size: 14.355px;
    line-height: 1.5;
}

.resource-list li > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.resource-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red-color);
    text-decoration: underline;
    white-space: nowrap;
}

.resource-download svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

/*===============================================================================================
  MOBILE RESOURCE LAYOUT
================================================================================================*/

@media (max-width: 600px) {
    .gallery-resources {
        padding: 70px 20px 100px;
    }

    .gallery-resources > h2 {
        margin-bottom: 24px;
        font-size: 27px;
    }

    .resources-card {
        min-height: 0;
        padding: 30px 24px 38px;
    }

    .resources-card h3 {
        font-size: 14px;
        letter-spacing: 0.22em;
        margin-bottom: 30px;
    }

    .resource-list li {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        font-size: 12px;
    }

    .resource-download {
        gap: 4px;
        font-size: 11px;
    }
}

/*===============================================================================================
  FOOTER
================================================================================================*/

footer {
    width: 100%;
    background-color: var(--black-color);
    padding: 66px;
}

#footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#footer-top {
    display: flex;
    align-items: center;
    gap: 72px;
    margin-bottom: 15px;
}

#footer-top img {
    height: 58px;
}

#footer-browse-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#footer-browse-section h2 {
    font-family: poppins, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    color: var(--pure-white-color);
    opacity: 0.65;
}

#footer-browse-section a {
    font-family: poppins, sans-serif;
    font-style: normal;
    font-size: 14px;
    color: var(--pure-white-color);
}

#footer-divider {
    border: none;
    height: 1px;
    width: 100%;
    max-width: 616px;
    background-color: var(--pure-white-color);
}

#footer-container h3 {
    font-family: poppins, sans-serif;
    font-weight: 300;
    font-style: normal;
    color: var(--pure-white-color);
    opacity: 0.7;
    font-size: 13px;
}

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

@media (max-width: 950px) {
    #footer-top img {
        height: 35px;
    }
}

/*===============================================================================================
  MOBILE FOOTER LAYOUT
================================================================================================*/

@media (max-width: 600px) {
    header {
        padding-left: 30px;
        padding-right: 30px;
    }

    .logo {
        height: 40px;
    }

    footer {
        padding-left: 33px;
        padding-right: 33px;
    }

    #footer-top {
        gap: 30px;
        flex-direction: column;
        align-items: flex-start;
    }

    #footer-container h3 {
        text-align: center;
        font-size: 10px;
    }

    .copyright-break {
        display: block;
    }

    .copyright-dash {
        display: none;
    }
}

/* Keep the modal close control plain in every interaction state. */
.gallery-preview-close,
.gallery-preview-close:hover,
.gallery-preview-close:active,
.gallery-preview-close:focus {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}
.gallery-preview-close:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}