/* Consolidated paragraph style matching the original site */
.og-paragraph {
    font-family: "futura-lt-w01-light", Inter, system-ui, -apple-system,
        "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial;
    font-weight: 400; /* font-normal */
    font-size: 18px;
    line-height: 27px;
    letter-spacing: normal;
    color: rgb(65, 65, 65);
    text-align: start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    margin-bottom: 1rem; /* matches Tailwind mb-4 */
    max-width: 70ch;
    outline: none; /* matches Tailwind focus:outline-none */
}
.og-paragraph:focus {
    outline: 2px solid rgb(65, 65, 65);
    outline-offset: 2px;
}

/* Local Cormorant Garamond font (user-provided files in /fonts/cormorantgaramond) */
/* @font-face {
    font-family: "Cormorant Garamond";
    src: url("/fonts/cormorantgaramond/CormorantGaramond-Regular.ttf")
        format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
} */
@font-face {
    font-family: "Cormorant Garamond";
    src: url("/fonts/cormorantgaramond/CormorantGaramond-SemiBold.ttf")
        format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Hamburger animated icon (three lines -> X) */
#burger {
    display: inline-block;
    width: 28px;
    height: 28px; /* increased so lines are more spaced */
    position: relative;
}
#burger .line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgb(65, 65, 65);
    border-radius: 2px;
    transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 180ms ease, top 260ms ease;
    transform-origin: center center;
}
#burger .line:nth-child(1) {
    top: 0;
}
#burger .line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
#burger .line:nth-child(3) {
    bottom: 0;
}

/* active/close state: center lines and rotate into an X */
#burger.close .line:nth-child(2) {
    opacity: 0;
}
#burger.close .line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
#burger.close .line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ensure the toggle button doesn't clip the rotated lines */
#mobileMenuToggle {
    overflow: visible;
}

/* Mobile menu overlay slide-in */
#mobileMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    transition: right 300ms ease;
    z-index: 40;
    padding: 2.5rem 1.25rem;
}
#mobileMenu.open {
    right: 0;
}

/* Backdrop behind mobile menu */
#mobileBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease;
}
#mobileBackdrop.open {
    opacity: 1;
    visibility: visible;
}
#mobileMenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#mobileMenu a {
    text-decoration: none;
    color: rgb(65, 65, 65);
    cursor: pointer;
    font-family: "Open Sans", "futura-lt-w01-light", Inter, sans-serif;
    font-size: 18px;
    font-weight: 400;
}

/* highlighted (active) menu link */
#mobileMenu a.active {
    color: rgb(68, 194, 188);
}

/* hover state - slightly darker/teal shade close to the active color */
#mobileMenu a:hover {
    color: rgb(41, 150, 141);
}

/* PhotoSwipe Font Awesome toolbar icon styling to match built-in icon sizing/color */
.pswp__fa-icon {
    font-size: 18px; /* match default PhotoSwipe icon visual weight */
    line-height: 1;
    color: var(
        --pswp-icon-color,
        #fff
    ); /* uses PhotoSwipe icon color variable when available */
    display: inline-block;
    vertical-align: middle;
}

/* Slight padding so FA icons don't sit flush inside buttons */
.pswp__button--fullscreen-button .pswp__fa-icon,
.pswp__button--close-button-fa .pswp__fa-icon {
    padding: 2px 4px;
}

/* Vertical column-based gallery (masonry-like) */
/* On small screens it's one column; on md and up it becomes 2 columns */
#gallery {
    column-gap: 24px; /* horizontal gutter between columns */
}

@media (min-width: 768px) {
    #gallery {
        column-count: 2;
    }
}

/* Each anchor becomes an inline-block so it participates in column flow
   and avoids being split across columns. Use break-inside to prevent
   the anchor from being fragmented between columns. */
#gallery a.pswp-thumb {
    display: inline-block;
    width: 100%;
    margin: 0 0 24px; /* vertical gap between stacked items */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

/* Ensure images inside thumbnails remain responsive */
#gallery a.pswp-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

/* Thumbnail hover: slight shrink + translucent dark overlay */
#gallery a.pswp-thumb {
    position: relative;
    overflow: hidden; /* keep overlay and transform clipped */
    /* transition/transform on the anchor ensures the overlay (::after)
       scales with the content and avoids the visible rim problem */
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
    cursor: pointer;
}

#gallery a.pswp-thumb img {
    /* keep image responsive; don't apply transform here so overlay matches */
    transition: box-shadow 700ms ease;
    display: block;
}

#gallery a.pswp-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    transform-origin: center center;
}

/* Hover and keyboard focus states */

/* Scale the entire thumbnail (anchor), so overlay scales with it and no rim appears */
#gallery a.pswp-thumb:hover,
#gallery a.pswp-thumb:focus-visible {
    transform: scale(0.985);
    /* remove any hover border/shadow applied via Tailwind utilities */
    border: none !important;
    box-shadow: none !important;
}

/* Remove anchor focus ring for mouse users but preserve keyboard focus via :focus-visible if desired */
#gallery a.pswp-thumb:focus {
    outline: none;
}

#gallery a.pswp-thumb:hover::after,
#gallery a.pswp-thumb:focus-visible::after {
    opacity: 1;
}

/* Subtle shadow lift on hover can also be reduced to keep focus on the image */
#gallery a.pswp-thumb:hover,
#gallery a.pswp-thumb:focus-visible {
    z-index: 1;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    #gallery a.pswp-thumb,
    #gallery a.pswp-thumb img,
    #gallery a.pswp-thumb::after {
        transition: none !important;
    }
}

/* News post layout and slider defaults */
.news-post {
    width: 100%;
    display: block;
}

.news-slider .slides > * {
    display: none;
}
.news-slider .slides > *:first-child {
    display: block;
}
.news-slider .prev,
.news-slider .next {
    display: none;
}
.news-slider .prev,
.news-slider .next {
    z-index: 50;
}
.news-slider.has-multiple .prev,
.news-slider.has-multiple .next {
    display: block;
}

/* Simple full-page video modal used as a fallback for mp4 slides */
.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    padding: 2rem;
}
.video-modal.open {
    display: flex;
}
.video-modal .inner {
    max-width: 1200px;
    width: 100%;
}
.video-modal .inner {
    position: relative;
    max-width: 1200px;
    width: calc(100% - 48px);
    max-height: calc(100vh - 80px);
}
.video-modal video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: #000;
}
.video-modal .controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    z-index: 3;
}
.video-modal .controls button {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 0;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.video-modal .controls button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.2);
}

/* PhotoSwipe video sizing helpers */
.pswp__zoom-wrap .pswp-video-wrap,
.pswp__content .pswp-video-wrap,
.pswp-video-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pswp-video {
    max-width: 100%;
    max-height: 100vh; /* keep video inside viewport height */
    width: auto;
    height: auto;
    object-fit: contain;
}

.text-postText {
    color: rgb(13, 13, 13);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 35px;
    overflow-wrap: break-word;
}

.contact-title {
    font-family: "open sans", sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: normal;
    color: #414141;
    margin: 0;
}

.contact-email {
    font-family: futura-lt-w01-light, futura-lt-w05-light, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 32.4px;
    color: #414141;
    margin: 0 auto;
    padding-left: 26px;
    padding-right: 26px;
}

/* Shop page typography & button to match original site visual style */
.shop-title {
    font-family: "Cormorant Garamond", "futura-lt-w01-light", Inter, system-ui,
        -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial,
        serif;
    font-weight: 600; /* semibold to match OG site */
    font-size: 56px;
    line-height: 1.15;
    color: #414141;
    margin: 0;
}

.shop-paragraph {
    font-family: "Open Sans";
    font-weight: 400;
    font-size: 18px;
    line-height: 32.4px;
    color: #414141;
    margin: 0 auto;
    padding-left: 26px;
    padding-right: 26px;
}

.shop-prints-button a,
.shop-prints-button {
    display: inline-block;
}

.shop-prints-button a {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 13.8px;
    color: #ffffff;
    background-color: #54c2bd;
    padding: 10px 36px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease,
        background-color 160ms ease;
    letter-spacing: 0em;
    border: solid 1px #54c2bd;
}

.shop-prints-button a:hover,
.shop-prints-button a:focus {
    background-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    color: #54c2bd;
}

.shop-prints-button a:active {
    transform: translateY(0);
}

.post-block {
    background-color: #f4f3f2;
    margin-bottom: 5rem;
    min-height: 500px; /* desktop baseline */
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.post-left {
    padding: 0;
    width: 40%;
    box-sizing: border-box;
}

.post-right {
    text-align: start;
    padding: 2rem 3rem;
    width: 60%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    font-family: "futura-lt-w01-light", sans-serif;
    font-size: 21px !important;
    font-weight: 400;
    line-height: 30px !important;
}

/* image inside left column: on desktop fill height (500px) and preserve aspect ratio */
.post-left {
    /* ensure left column has an explicit minimum height so children can size to it */
    min-height: 500px;
    display: flex;
    align-items: stretch;
}

.post-left .post-img,
.post-left img.post-img {
    min-height: 500px; /* guarantee at least 500px tall */
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
}

/* Mobile / small screens: stack columns and adjust heights */
@media (max-width: 767px) {
    .post-block {
        flex-direction: column;
        min-height: 0; /* allow natural height when stacked */
    }
    .post-left {
        width: 100%;
    }
    .post-right {
        width: 100%;
        min-height: 350px; /* requested mobile min height */
    }
    .post-left .post-img,
    .post-left img.post-img {
        width: 100%;
        height: auto; /* natural height on mobile */
    }
}

/* Center images horizontally on mobile and ensure they fill the container width */
@media (max-width: 767px) {
    .post-left .post-img,
    .post-left img.post-img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}

/* stronger override to handle object-fit and thumbnails inside anchors */
@media (max-width: 767px) {
    .post-left,
    .post-left .news-slider,
    .post-left .slides {
        width: 100% !important;
    }
    .post-left img.post-img,
    .post-left .pswp-thumb img,
    .post-left .news-slider img {
        display: block !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Desktop: ensure right column stretches to match left column height so centering works */
@media (min-width: 768px) {
    .post-block {
        height: 500px; /* explicit height so children with height:100% resolve */
    }

    .post-right {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center; /* ensure vertical center when row layout */
    }
}

/* Contact form controls styling and clientside validation visuals */
.contact-form .contact-field,
.contact-form textarea.contact-field,
.contact-form input.contact-field {
    background-color: #f4f3f2; /* default background */
    border: 1px solid #f4f3f2; /* required border color */
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-top: 5px; /* vertical spacing 5px */
    margin-bottom: 5px;
    transition: background-color 120ms ease, border-color 120ms ease;
}

/* hover: white background, border remains the same color */
.contact-form .contact-field:hover,
.contact-form textarea.contact-field:hover {
    background-color: #ffffff;
    border-color: #f4f3f2;
}

/* focus: active typing state */
.contact-form .contact-field:focus,
.contact-form textarea.contact-field:focus {
    background-color: rgb(184 236 233);
    outline: none;
}

/* Missing required field highlight */
.contact-form .contact-field.required-missing,
.contact-form textarea.contact-field.required-missing {
    background-color: #f4a394 !important;
    border-color: #f4f3f2 !important;
}

.contact-form .field-error {
    color: #7a2f2f;
    font-size: 12px;
    margin-top: 4px;
    margin-bottom: 2px;
    display: none; /* toggled by JS when an error appears */
}

/* Submit button: full-width and hover/active states */
.contact-submit {
    display: block;
    width: 100%;
    background-color: #414141;
    color: #ffffff;
    padding: 0.75rem 0.9rem;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-sizing: border-box;
}
.contact-submit:hover,
.contact-submit:focus {
    background-color: #f4f3f2;
    color: #414141;
    border: 1px solid #414141; /* becomes visible on hover */
}

/* Ensure our contact form overrides Tailwind spacing when necessary */
.contact-form {
    width: 100%;
}
