/* ==========================================================================
   https://www.sarie-jayne.com
   Sarie-Jayne Design HTML Template
   v1.0.0 - mobile video fix
   ========================================================================== */

/* Theme Variables & Reset */
:root {
    --primary-burgundy: #A80E26;
    --primary-burgundy-hover: #860A1E;
    --accent-gold: #D4AF37;
    --text-dark: #2C2C2C;
    --text-muted: #555555;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #EAEAEA;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

img {
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Global Layout & Typography
   ========================================================================== */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    text-align: center;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.scripture {
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: 0.5px;
    font-style: italic;

}

.product-title {
    font-size: 2;
    font-family: var(--font-heading);
}
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
    border: none;
    margin: 0 auto 40px auto;
    width: 60%;
}

.site-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 25px auto 15px auto;
    object-fit: contain;
}

/* ==========================================================================
   Header & Navigation Bar
   ========================================================================== */
.social-bar {
    text-align: center;
    padding: 10px 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.social-bar a {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 12px;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.social-bar a:hover {
    color: var(--primary-burgundy);
    transform: translateY(-2px);
}

.social-bar .divider-dot {
    color: #CCC;
}

.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding: 15px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    text-decoration: none;
    background: none;
    border: none;
    padding: 5px;
}

.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    z-index: 50;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
}

.links a {
    color: var(--text-dark);
    padding: 14px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.links a:hover {
    background-color: var(--bg-light);
    color: var(--primary-burgundy);
    padding-left: 25px;
}

/* ==========================================================================
   Video Hero Section - FIXED FOR MOBILE
   ========================================================================== */

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.video-hero-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    margin: 0 auto 50px auto;
    background-color: #333;
    padding: 60px 20px;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

.video-overlay-tint {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.video-text-overlay {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    padding: 0px;
    background: transparent;
    text-align: center;
    color: #fff;
    gap: 18px
    flex-direction: column;
}

.video-text-overlay p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ffffff
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

@media (max-width: 768px) {
    .content-container {
        padding-left: 0;
        padding-right: 0;
    }
    .content-container .site-logo,
    .content-container .section-header,
    .content-container .section-subtitle,
    .content-container .scripture,
    .content-container .divider {
        margin-left: 20px;
        margin-right: 20px;
    }
 
    .video-hero-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 85vh !important;
        min-height: 85svh !important;
        margin: 0 0 35px 0 !important;
        padding: 40px 20px !important;
        border-radius: 0 !important;
        transform: none !important;
        left: 0 !important;
    }

   .hero-video {
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: cover !important;
        object-position: 70% center !important; /* keeps the bride visible */
    }

    .video-text-overlay {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
    }

        .video-text-overlay p {
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
    }
}

/* ==========================================================================
   Hide Unwanted Top Slideshow & Mobile Video
   ========================================================================== */
.slideshow-container, 
.mobile-video,
.video-banner-container {
    display: none !important;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 769px) {
    .hamburger-toggle {
        display: none;
    }

    .links {
        display: flex !important;
        position: static;
        box-shadow: none;
        width: auto;
        background-color: transparent;
        border-bottom: none;
    }

    .links a {
        border-bottom: none;
        padding: 5px 18px;
        font-size: 0.8rem;
    }

    .links a:hover {
        background-color: transparent;
        padding-left: 18px;
    }
}

/*
============================================================
Image Swap
============================================================
*/

.thumbnail-wrapper.image-swap {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1; /* keeps your 1600x1600 square */
  overflow: hidden;
}

.thumbnail-wrapper.image-swap a {
  display: grid;
  width: 100%;
  height: 100%;
}

.thumbnail-wrapper.image-swap a img,
.thumbnail-wrapper.image-swap a video {
  grid-area: 1 / 1; /* THIS fixes the video stretch - both in same square */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.thumbnail-wrapper.image-swap .img-hover { opacity: 0; }
.thumbnail-wrapper.image-swap:hover .img-hover { opacity: 1; }
.thumbnail-wrapper.image-swap:hover .img-default { opacity: 0; }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
  align-items: start;
}

.thumbnail-wrapper.image-swap {
  width: 100%;
  max-width: 380px; /* controls how small - change to 300px for smaller */
  aspect-ratio: 1 / 1; /* makes your 1600x1600 stay square */
  overflow: hidden;
  background: #fff;
}

.thumbnail-wrapper.image-swap a {
  display: grid;
  width: 100%;
  height: 100%;
}

.thumbnail-wrapper.image-swap .img-hover {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.thumbnail-wrapper.image-swap:hover .img-hover {
  opacity: 1;
}

.thumbnail-wrapper.image-swap .img-default {
  opacity: 1;
  transition: opacity 0.4s ease;
}

.thumbnail-wrapper.image-swap:hover .img-default {
  opacity: 0;
}

.gown-hover {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gown-hover img,
.gown-hover video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gown-hover video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gown-hover:hover video {
    opacity: 1;
}

/* --- Product Page Layout --- */
.product-page-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.product-images-area {
    flex: 1 1 500px;
    max-width: 650px;
}

.product-details-column {
    flex: 1 1 350px;
}

/* --- Side-by-Side Gallery Container --- */
.product-gallery-container {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

/* --- Left Thumbnail Column --- */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 90px; /* Width of the thumbnail column */
    flex-shrink: 0;
}

.thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumbnail-wrapper:hover {
    border-color: #8B0000; /* Subtle hover accent */
    transform: translateY(-2px);
}

.thumbnail-wrapper.active-thumb {
    border: 2px solid #8B0000; /* Highlights currently selected thumbnail */
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Main Medium-Sized Image Area --- */
.main-image-area {
    flex-grow: 1;
    position: relative;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background-color: #FAFAFA;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.15s ease-in-out;
}

/* Zoom Hint Badge */
.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* --- Lightbox Modal Styles --- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-caption {
    color: #FFFFFF;
    margin-top: 15px;
    font-family: var(--font-heading, serif);
    font-size: 1.2rem;
}

/* --- Order Now Button Styling --- */
.btn-order {
    display: inline-block;
    width: 100%;
    max-width: 280px;
    padding: 14px 24px;
    margin: 25px 0;
    background-color: #8B0000; /* Rich burgundy/red background */
    color: #FFFFFF !important;
    font-family: var(--font-heading, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-order:hover {
    background-color: #A80E26; /* Slightly brighter red on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 14, 38, 0.3);
}

/* --- Zoom Badge & Red Hover State --- */
.zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: 0.5px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

/* Turns the Zoom badge red when hovering over the main image container */
.main-image-area:hover .zoom-hint {
    background-color: #A80E26; /* Turns red on hover */
    transform: scale(1.05);
}