/* save-the-date.css */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@700&display=swap');

:root {
    --std-luxury-green: #17352c;
    --std-cream-white: #f8faf6;
    --std-panel-border: #4a3a5a; /* Dark purple/blue border */
    --std-bg-lavender: #e2d7e8; /* Light purple from reference */
    --std-overlay-gradient: linear-gradient(to bottom, rgba(74, 58, 90, 0.1), rgba(74, 58, 90, 0.3), rgba(74, 58, 90, 0.6));
}

.std-cinematic-layout {
  width: 100%;
  height: auto;
  background-color: #283f31;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0px 0px;
}

/* Single Image Box */
.std-image-box {
    display: block;
    width: 100%;
    max-width: 1400px; /* Slightly wider for laptop */
    margin: 0 auto;
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 7; /* Cinematic widescreen for laptop */
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(74, 58, 90, 0.2);
    border-radius: 8px; /* Slight rounding for premium feel */
}

@media (max-width: 1024px) {
    .std-image-box {
        aspect-ratio: 16 / 9;
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .std-image-box {
        aspect-ratio: 4 / 3;
        max-width: 100%;
        border-radius: 0;
    }

    /* Pin text to bottom on mobile */
    .std-text-overlay {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 24px;
        padding-top: 50px;
        background: linear-gradient(to bottom,
            transparent 0%,
            rgba(20, 30, 20, 0.55) 40%,
            rgba(20, 30, 20, 0.85) 100%
        );
        z-index: 10;
    }

    .std-overlay-script {
        font-size: clamp(1.8rem, 8vw, 3rem);
        margin-bottom: -8px;
    }

    .std-date-item {
        font-size: clamp(2rem, 12vw, 5rem);
    }
    .std-date-display {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 3vw, 40px);
  position: relative;
  z-index: 12;
  margin: -30px;
}
.std-cinematic-layout.reveal .std-overlay-script {
  opacity: 0.95;
  transform: scale(1);
  margin: 10px;
}
}

.std-single-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s cubic-bezier(0.2, 1, 0.3, 1);
}

.std-cinematic-layout:hover .std-single-img {
    transform: scale(1.1);
}

/* Panel Overlay Gradient */
.std-panel-gradient {
    position: absolute;
    inset: 0;
    background: var(--std-overlay-gradient);
    z-index: 2;
    pointer-events: none;
}

/* Text Overlay Container — anchored to bottom of image */
.std-text-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    text-align: center;
    padding-bottom: 48px; /* space from image bottom */
    padding-top: 60px;    /* gradient fade room above text */
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(20, 30, 20, 0.55) 40%,
        rgba(20, 30, 20, 0.80) 100%
    );
}

/* "Save The Date" Script */
.std-overlay-script {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    color: var(--std-cream-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.95);
    margin-bottom: -15px;
    transition: all 1.5s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 15;
}

.std-cinematic-layout.reveal .std-overlay-script {
    opacity: 0.95;
    transform: scale(1);
}

/* Date Display */
.std-date-display {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 40px);
    position: relative;
    z-index: 12;
}

.std-date-item {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 15vw, 11rem);
    color: var(--std-cream-white);
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    line-height: 0.9;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.std-cinematic-layout.reveal .std-date-item {
    opacity: 1;
    transform: translateY(0);
}

.std-date-item:nth-child(1) { transition-delay: 0.3s; }
.std-date-item:nth-child(2) { transition-delay: 0.6s; }
.std-date-item:nth-child(3) { transition-delay: 0.9s; }

/* Floating animation for script */
.std-float-anim {
    animation: stdFloat 5s ease-in-out infinite;
}

@keyframes stdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 480px) {
    .std-cinematic-layout {
        padding: 0px 0;
    }
    
    .std-overlay-script {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .std-date-item {
        font-size: clamp(2.5rem, 18vw, 6rem);
    }
}