/* Courtesy of https://gwfh.mranftl.com/ */
/* open-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v44-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/open-sans-v44-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* Global Reset and Background */
html {
    background-color: #000;
}

body {
    margin: 0px;
    padding: 0px;
}

/* Home/Info Button Links */
/* Replaces: style="color:orange;font-size:11px" */
.gallery-link {
    color: orange !important;
    font-size: 11px;
    text-decoration: none; /* Recommended for a cleaner look */
}

.gallery-link:hover {
    text-decoration: underline;
    color: #ffcc00; /* Subtle hover effect */
}

/* Ensure the info button text is aligned correctly */
#cj-info-button p {
    margin: 5px 0;
}

/* Optional Gemini Suggestion */
/* Mobile Optimizations */
@media only screen and (max-width: 767px) {
    .gallery-link {
        font-size: 14px; /* Larger text for readability */
        padding: 10px 0; /* Larger "hit area" for thumbs */
        display: inline-block; /* Allows the padding to work properly */
    }

    #cj-info-button {
        /* Optional: ensure the container has enough room on small screens */
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   GALLERY TWEAKS
   These only trigger when the designated page body class is present.
   ========================================================================== */

   /* Animation Keyframes */
   @keyframes fadeInSlide {
       0% { opacity: 0; transform: translateY(10px); }
       100% { opacity: 1; transform: translateY(0); }
   }

   #oneforsonny-page {
       display: flex;
       flex-direction: column;
       align-items: center;
       padding: 40px;
       //min-height: 100vh;
   }

   #oneforsonny-page.scroll-enabled {
       display: block !important;
       padding: 0 !important;
   }

   #oneforsonny-page .full-cover-image {
       display: block;
       width: 100vw;
       max-height: 100vh;
       object-fit: contain;
       cursor: zoom-in;
       animation: fadeInSlide 1.2s ease-out forwards;
   }

   #oneforsonny-page .filmstrip-container {
       width: 100%;
       padding: 10px 0 40px 0;
       display: flex;
       justify-content: center;
       flex-wrap: wrap; /* Move images to a second row if needed */
       gap: 15px;
       background-color: #000;
   }

   #oneforsonny-page .filmstrip-image {
       height: 120px;
       width: auto;
       border: 1px solid #333;
   }

   /* --- 3. THE LIGHTBOX (Zoomed State) --- */
   #oneforsonny-page .zoom-stage {
       display: none;
       position: fixed !important;
       top: 0;
       left: 0;
       width: 100vw;
       height: 100vh;
       background: #000;
       z-index: 10000;
       overflow: auto !important;
       margin: 0 !important;
       padding: 0 !important;
   }

   #oneforsonny-page .full-cover-image.is-zoomed {
       display: block !important;
       position: absolute !important;
       width: auto !important;
       height: auto !important;
       max-width: none !important;
       max-height: none !important;
       object-fit: none !important;
       cursor: zoom-out !important;
       /* We disable animation here so the zoom feels instant/responsive */
       animation: none !important;
       border: none !important;
   }

   #oneforsonny-page .zoom-caption {
       position: fixed;
       top: 20px;
       left: 20px;
       background: rgba(0, 0, 0, 0.8);
       color: orange;
       padding: 10px 20px;
       font-family: 'Open Sans', sans-serif;
       font-size: 14px;
       border-left: 3px solid orange;
       z-index: 10001;
       pointer-events: none;
       animation: fadeInSlide 0.5s ease-out;
   }

   /* --- 4. UI ELEMENTS --- */
   #oneforsonny-page #explore-prompt {
       position: fixed;
       bottom: 30px;
       left: 50%;
       transform: translateX(-50%);
       color: orange;
       border: 1px solid orange;
       padding: 12px 24px;
       font-family: 'Open Sans', sans-serif;
       text-transform: uppercase;
       z-index: 1000;
   }

   body.scroll-enabled #explore-prompt { display: none; }
