/* =============================
   Base reset
   - Сброс отступов и box-sizing
   ============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page base: типографика и фон */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Фиксированный декоративный фон с pattern.jpeg */
.background-fixed {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-image: url('./images/pattern1.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    pointer-events: none;
}

/* Поднимаем основной контент над фиксированным фоном */
body > *:not(.background-fixed) {
    position: relative;
    z-index: 1;
}


/* Высота секций: каждая секция = 100vh */
/* section {
    min-height: 100vh;
} */

/* =============================
   HERO (первый экран)
   - Фон, затемнение, заголовок сверху, имена, тип события, дата, play
   ============================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding: 20px;
    text-align: center;
    color: #fff;
    background-image: url('./images/background22.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 45% center;
}

/* Слой фонового изображения */
.hero-background {
    position: absolute;
    inset: 0;
}

/* Затемняющий оверлей поверх фона */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

/* Верхний заголовок над контентом героя */
.hero-top {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 10px 16px;
}

/* Текст верхнего заголовка */
.hero-top-title {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .95;
}

/* Центральный контейнер контента героя */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Имена пары в центре */
.couple-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    margin-top: 18px;
    color: #fff;
    font-family: 'Great Vibes', cursive;
}

/* Стиль имени */
.name {
    font-size: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    letter-spacing: .5px;
}

/* Символ & между именами */
.and-symbol {
    font-size: 2.2rem;
    opacity: .9;
}

@media (min-width: 600px) {
    /* Desktop-правила для блока имен */
    .couple-names {
        flex-direction: row;
        gap: 28px;
    }

    .name {
        font-size: 4.5rem;
    }

    .and-symbol {
        font-size: 3rem;
    }
}

@media (min-width: 900px) {
    /* Крупные экраны: увеличить размер имени */
    .name {
        font-size: 6rem;
    }
}

/* Тип события (под именами) */
.event-type h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    letter-spacing: 4px;
    text-transform: uppercase;
}

@media (min-width: 600px) {
    /* Увеличить заголовок типа события на таблетах+ */
    .event-type h2 {
        font-size: 3rem;
    }
}

/* Дата мероприятия с разделителем */
.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

/* Тонкая линия-разделитель над датой */
.date-sep {
    width: 70px;
    height: 2px;
    background: rgba(255, 255, 255, .75);
}

/* Текст даты */
.date-text {
    color: #fff;
    font-size: 1.85rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

/* Кнопка Play */
.play-btn {
    margin-top: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .9);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Вариант кнопки для музыки */
.music-btn { background: rgba(0,0,0,.25); backdrop-filter: blur(2px); }
.music-btn:hover { background: rgba(0,0,0,.35); }

/* Привлекающая анимация для кнопки музыки */
.music-btn {
    position: relative;
    overflow: visible;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: all 0.3s ease;
    animation: music-btn-pulse 3s ease-in-out infinite;
}

.music-btn::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    animation: ring-wave 2.5s ease-in-out infinite;
}

.music-btn::after {
    content: "";
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    animation: ring-wave-outer 3s ease-in-out infinite;
}

.music-btn.is-playing { 
    box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 4px rgba(255,255,255,.15) inset;
    animation: music-btn-playing 1.5s ease-in-out infinite;
}

.music-btn.is-playing::before {
    border-color: rgba(255,255,255,.9);
    animation: ring-playing 1.5s ease-in-out infinite;
}

.music-btn.is-playing::after {
    border-color: rgba(255,255,255,.5);
    animation: ring-playing-outer 1.5s ease-in-out infinite;
}

/* Постоянная пульсация кнопки */
@keyframes music-btn-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0,0,0,.18), 0 0 0 0 rgba(255,255,255,.3);
    }
    50% { 
        transform: scale(1.08);
        box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 8px rgba(255,255,255,.1);
    }
}

/* Анимация при воспроизведении */
@keyframes music-btn-playing {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 4px rgba(255,255,255,.15) inset;
    }
    50% { 
        transform: scale(1.12);
        box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.25) inset;
    }
}

/* Волны внутреннего кольца */
@keyframes ring-wave {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.9;
    }
}

@keyframes ring-playing {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Волны внешнего кольца */
@keyframes ring-wave-outer {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.25);
        opacity: 0.6;
    }
}

@keyframes ring-playing-outer {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.3);
        opacity: 0.8;
    }
}

/* Треугольник внутри кнопки Play */
.play-icon {
    width: 0;
    height: 0;
    border-left: 14px solid rgba(255, 255, 255, .95);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 2px;
}

/* Индикатор прокрутки (контейнер) */
.scroll-indicator {
    margin-top: 40px;
}

/* Стрелка вниз (линии под углом) */
.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto 15px;
}

/* =============================
   CONTENT SECTIONS (после героя)
   - Приветствие, Инфо о событии, RSVP
   ============================= */
.invite-section, .event-info, .rsvp-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #222;
}

/* Ограничение ширины контента секций */
.invite-container {
    width: 100%;
    max-width: 980px;
}

/* Небольшое приветствие над заголовком */
.invite-greeting {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
    font-variant: small-caps;
    letter-spacing: 2px;
}

/* Заголовок секции приглашения */
.invite-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: .5px;
    position: relative;
    padding-bottom: 10px;
}

/* Тонкий декоративный разделитель под заголовком */
.invite-title::after {
    content: "";
    display: block;
    width: 120px;
    height: 1px;
    margin: 12px auto 0;
    background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.45), rgba(0,0,0,.05));
}
.invite-title::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
}

/* Основной текст-приглашение */
.invite-text {
    font-style: italic;
    text-align: center;
    color: #555;
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 760px;
    margin: 0 auto;
}

/* Блок даты/времени события */
.event-date-time {
    text-align: center;
    margin-bottom: 24px;
}

/* Крупная дата в контенте */
.event-date-large {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
}

/* Время мероприятия */
.event-time {
    font-size: 1.25rem;
    color: #666;
}

/* Блок информации о площадке */
.event-place {
    text-align: center;
}

/* Название площадки */
.place-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

/* Адрес площадки */
.place-address {
    color: #666;
    margin: 6px 0;
}

/* Кнопка "Как добраться" */
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border: 1px solid #111;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.map-link::after {
    content: '↗';
    font-size: .9rem;
    opacity: .9;
}

.map-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    background: #000;
}

.map-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Event cards (церковь и ресторан) */
.event-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.event-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Карточка теперь содержит только изображение, занимающее всю ширину/высоту */
.event-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    opacity: 0.8;
    border-radius: 16px;
}

.event-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-caption .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 10px;
    color: #111;
    letter-spacing: .4px;
    text-align: center;
}

.event-caption .card-meta {
    color: #666;
    margin-top: 6px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.event-caption {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.event-caption .card-sep {
    opacity: .6;
}

@media (min-width: 768px) {
    .event-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Calendar with animated active day */
.event-calendar {
    --accent: #111;
    --bg: #fff;
    --muted: #9aa1a7;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    padding: 16px;
}

/* Календарь внутри блока приглашения — отступ сверху и центрирование */
.invite-section .event-calendar {
    margin-top: 24px;
}

@media (min-width: 768px) {
    .invite-section .event-calendar { max-width: 520px; }
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cal-title {
    font-weight: 600;
    color: var(--accent);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-weekday {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
}

.cal-day {
    text-align: center;
    padding: 10px 0;
    border-radius: 10px;
    color: #222;
}

.cal-day.muted {
    color: #c6cacc;
}

/* Animated special day with rotating ring */
.cal-day.special-day {
    font-weight: 700;
    font-size: 1.5em;
    position: relative;
}

.cal-day.special-day::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 90px;
    background-image: url('./images/ring1.png');
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%) rotate(30deg);
    z-index: -1;
    animation: heart 2s ease-in-out alternate infinite;
}

@keyframes heart {
    0% {
        transform: translate(-50%, -50%) rotate(50deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(40deg);
    }
}


/* Заголовок секции RSVP */
.rsvp-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* Форма подтверждения присутствия */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
}

/* RSVP info block with children notice */
.rsvp-info {
    text-align: center;
    margin-bottom: 20px;
}

.rsvp-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

/* RSVP groups */
.rsvp-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.rsvp-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Input fields and textarea styling */
.rsvp-group input[type="text"],
.rsvp-group input[type="number"],
.rsvp-group textarea {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rsvp-group input[type="text"]:focus,
.rsvp-group input[type="number"]:focus,
.rsvp-group textarea:focus {
    outline: none;
    border-color: #2D4A22;
}

/* RSVP options for radio buttons and checkboxes */
.rsvp-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.rsvp-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.rsvp-options label:hover {
    background: rgba(45, 74, 34, 0.1);
    transform: translateY(-1px);
}

/* Скрываем стандартные радио-кнопки и чекбоксы */
.rsvp-options input[type="radio"],
.rsvp-options input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Кастомные радио-кнопки */
.rsvp-options input[type="radio"] + span {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    transition: all 0.3s ease;
}

.rsvp-options input[type="radio"]:checked + span {
    border-color: #2D4A22;
    background: #2D4A22;
}

.rsvp-options input[type="radio"]:checked + span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.rsvp-options input[type="radio"]:hover + span {
    border-color: #2D4A22;
    box-shadow: 0 0 8px rgba(45, 74, 34, 0.3);
}

/* Кастомные чекбоксы */
.rsvp-options input[type="checkbox"] + span {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    transition: all 0.3s ease;
}

.rsvp-options input[type="checkbox"]:checked + span {
    border-color: #2D4A22;
    background: #2D4A22;
}

.rsvp-options input[type="checkbox"]:checked + span::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.rsvp-options input[type="checkbox"]:hover + span {
    border-color: #2D4A22;
    box-shadow: 0 0 8px rgba(45, 74, 34, 0.3);
}

/* Анимация при выборе */
.rsvp-options input[type="radio"]:checked + span,
.rsvp-options input[type="checkbox"]:checked + span {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* RSVP button */
.rsvp-btn {
    align-self: center;
    background: #222;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.rsvp-btn:hover {
    background: #444;
}

/* RSVP message display */
#rsvp-message {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

#rsvp-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#rsvp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (min-width: 600px) {
    /* Крупнее заголовки на планшетах и выше */
    .invite-title {
        font-size: 2.25rem;
    }

    .event-date-large {
        font-size: 2.25rem;
    }
}

/*order*/

footer {
    background: #fff;
}

.order {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 40px 20px;
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
    overflow: visible;
}

.order h2 {
    font-size: 24px;
    color: #333;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.order-form input {
    background: var(--white);
    width: 100%;
    padding: 12px 14px;
    border: none;
    outline: none;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.2s;
}

.order-form button {
    background: rgba(104, 184, 27, 0.47);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.order-form button:hover {
    background: #91cc57;
}

.iti__flag-container {
    font-family: initial;
}

.iti--separate-dial-code .iti__selected-flag {
    background: initial;
}

.logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.logo {
    width: 150px;
}

.logo a {
    cursor: pointer;
}

.logo img {
    width: 100%;
}

/* =============================
   COUNTDOWN SECTION
   - Стили для блока обратного отсчета
   ============================= */
.countdown-section {
    padding: 80px 20px;
    text-align: center;
}

.countdown-section .invite-container {
    margin: 0 auto;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2D4A22;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-passed {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2D4A22;
    text-align: center;
    padding: 40px 20px;
    background: rgba(45, 74, 34, 0.1);
    border-radius: 15px;
    border: 2px solid #2D4A22;
}

.countdown-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .countdown-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 20px;
    }
    
    .countdown-item {
        min-width: 100px;
    }
    
    .countdown-number {
        font-size: 2.8rem;
    }
    
    .countdown-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {

    .background-fixed {
        background-position: 60% 80%;
        background-size: cover;
        pointer-events: none;
    }

    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .countdown-title {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
}

/* =============================
   GALLERY SECTION
   ============================= */
.gallery-section {
    padding: 80px 20px;
    text-align: center;
}

.gallery-section .invite-container { margin: 0 auto; }

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.gallery-slider {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
    background: #000;
}

/* Inner frame and vignette for uniqueness */
.gallery-slider::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.25);
    pointer-events: none;
    z-index: 2;
}
.gallery-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 140px rgba(0,0,0,.45);
}

.gallery-track {
    display: flex;
    width: 100%;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.gallery-slide {
    position: relative;
    min-width: 100%;
    height: 0;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.gallery-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.95);
    transition: transform 1.2s ease, filter .4s ease;
}

.gallery-slide.is-active img { filter: brightness(1); }
.gallery-slide:hover img { transform: scale(1.03); }

/* Ken Burns animation for active slide */
@keyframes kb-zoom-pan {
    0%   { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.15) translate3d(-1.5%, -1.5%, 0); }
}
.gallery-slide.is-active img {
    animation: kb-zoom-pan var(--kb-duration, 8000ms) ease-out forwards;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s ease, transform .2s ease;
}

.gallery-nav:hover { background: rgba(255,255,255,.25); transform: translateY(-50%) scale(1.05); }
.gallery-nav:active { transform: translateY(-50%) scale(.98); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

/* Slightly hide arrows by default, reveal on hover */
.gallery-slider .gallery-nav { opacity: .85; }
.gallery-slider:hover .gallery-nav { opacity: 1; }

.gallery-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.gallery-dots button {
    min-width: 28px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #111;
    font-size: 12px;
    line-height: 20px;
    opacity: .85;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.gallery-dots button:hover { transform: translateY(-1px); }
.gallery-dots button.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
    opacity: 1;
}

/* Caption overlay */
.gallery-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 18px;
    color: #fff;
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: .2px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.75) 100%);
    user-select: none;
}

/* Autoplay progress bar */
.gallery-progress {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: rgba(255,255,255,.25);
    overflow: hidden;
}
.gallery-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #d7d7d7 100%);
    transition: width var(--progress-duration, 5s) linear;
}

@media (max-width: 768px) {
    .gallery-title { font-size: 2rem; }
    .gallery-section { padding: 60px 20px; }
    .gallery-caption { font-size: .98rem; padding: 14px; }
}

/* =============================
   intl-tel-input tweaks
   ============================= */
.iti {
    width: 100%;
    position: relative;
    overflow: visible;
}

  /* Keep intl-tel-input neutral */
  .iti__flag-container { 
      font-family: initial;
  }
  
  .iti--separate-dial-code .iti__selected-flag {
      background: initial;
  }

/* Use plugin defaults for country list positioning and size */