.justmarried-img , .img_gijon, .video-container{
    width: 70%;
}



/* FONTS */

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
}

.lavishly-yours-regular {
    font-family: "Lavishly Yours", cursive;
    font-weight: 400;
    font-style: normal;
}


.fleur-de-leah-regular {
    font-family: "Fleur De Leah", cursive;
    font-weight: 400;
    font-style: normal;
}

.lobster-regular {
    font-family: "Lobster", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.bellota-light {
    font-family: "Bellota", system-ui;
    font-weight: 300;
    font-style: normal;
}

.bellota-regular {
    font-family: "Bellota", system-ui;
    font-weight: 400;
    font-style: normal;
}

.bellota-bold {
    font-family: "Bellota", system-ui;
    font-weight: 700;
    font-style: normal;
}

.bellota-light-italic {
    font-family: "Bellota", system-ui;
    font-weight: 300;
    font-style: italic;
}

.bellota-regular-italic {
    font-family: "Bellota", system-ui;
    font-weight: 400;
    font-style: italic;
}

.bellota-bold-italic {
    font-family: "Bellota", system-ui;
    font-weight: 700;
    font-style: italic;
}

.imperial-script-regular {
    font-family: "Imperial Script", cursive;
    font-weight: 400;
    font-style: normal;
}

/*######*/

body {
    /*background-color: #F7F1E3;*/
    /*background-color: #F5EBDD;*/
    background-color: #FAF3E0;
    /*background-color: #EFE6D6;*/
}

nav#breadcrumbs{
    display: none;
}

#_navbar, .nav-btn-bar {
    /*background-color: #C2A693;*/
    background-color: #F6EFDB;
}

section p {
    font-family: "Bellota", system-ui;
    font-weight: 500;
    font-style: normal;
    font-size: large;
}

section p strong {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
}

#headerText{
    font-family: "Bellota", system-ui;
    font-weight: 600;
    font-style: normal;
    font-size: larger;
}

/*Sidebar*/

.dingbat {
    display: none;
}

.sidebar-logo-text {
    display: inline-block;
    margin-bottom: 1rem;
    /*font-family: "Imperial Script", cursive;*/
    padding: 0.45rem 1.1rem 0.35rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #d7d7d7 0%, #a8a8a8 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 10px 22px rgba(0, 0, 0, 0.28);
    font-size: 3rem;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    animation: countdown-shimmer 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    /*font-family: "Lavishly Yours", cursive;*/
    /*font-weight: 400;*/
    /*font-style: normal;*/

    font-family: "Meow Script", cursive;
    font-weight: 400;
    font-style: normal;



}

.sidebar-logo-text::before,
.sidebar-logo-text::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sidebar-logo-text::before {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 9%, transparent 38%) 20% 24% / 20px 20px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.95) 50%, transparent 53%) 20% 24% / 20px 20px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.92) 50%, transparent 53%) 20% 24% / 20px 20px no-repeat,
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.88) 50%, transparent 52%) 20% 24% / 20px 20px no-repeat,
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.88) 50%, transparent 52%) 20% 24% / 20px 20px no-repeat,
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 8%, transparent 40%) 78% 30% / 16px 16px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.82) 50%, transparent 53%) 78% 30% / 16px 16px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.82) 50%, transparent 53%) 78% 30% / 16px 16px no-repeat;
    opacity: 0.2;
    mix-blend-mode: screen;
    animation: countdown-sparkle-twinkle 2.2s ease-in-out infinite;
}

.sidebar-logo-text::after {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 1) 0 10%, transparent 42%) 36% 70% / 22px 22px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.95) 50%, transparent 53%) 36% 70% / 22px 22px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.92) 50%, transparent 53%) 36% 70% / 22px 22px no-repeat,
        linear-gradient(35deg, transparent 48%, rgba(255, 255, 255, 0.9) 50%, transparent 52%) 36% 70% / 22px 22px no-repeat,
        linear-gradient(-35deg, transparent 48%, rgba(255, 255, 255, 0.9) 50%, transparent 52%) 36% 70% / 22px 22px no-repeat;
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(0.2px);
    animation: countdown-light-flash 4.8s ease-in-out infinite;
}

.sidebar-about .avatar {
    margin-bottom: 19.5rem;
}

.avatar {
    width: 18rem;
    height: 8rem;
    /*border-radius: 100%;*/
    border-radius: 0%;
    overflow: hidden;
    display: inline-block;
    position: relative;
    z-index: 1;
    /*background-color: #f5f5dcab;*/
}

#countdown-sidebar-host {
    display: flex;
    justify-content: center;
    margin-bottom: 20rem;
}

#countdown {
    display: flex;
    /*flex-wrap: wrap;*/
    justify-content: center;
    gap: 0.9rem;
    margin: 1rem auto 0;
    color: #fff;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

@keyframes countdown-shimmer {
    0% {
        background: linear-gradient(180deg, #a8a8a8 0%, #8a8a8a 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            0 10px 22px rgba(0, 0, 0, 0.3);
    }
    50% {
        background: linear-gradient(180deg, #d4d4d4 0%, #b0b0b0 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 15px 35px rgba(200, 200, 200, 0.4);
    }
    100% {
        background: linear-gradient(180deg, #a8a8a8 0%, #8a8a8a 100%);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.35),
            0 10px 22px rgba(0, 0, 0, 0.3);
    }
}

@keyframes countdown-silver-shimmer {
    0% {
        background: linear-gradient(180deg, #e4e4e4 0%, #b0b0b0 55%, #8e8e8e 100%);
        box-shadow:
            inset 0 2px 1px rgba(255, 255, 255, 0.72),
            inset 0 -1px 2px rgba(90, 90, 90, 0.25),
            0 12px 24px rgba(0, 0, 0, 0.28);
    }
    50% {
        background: linear-gradient(180deg, #f2f2f2 0%, #cccccc 52%, #ababab 100%);
        box-shadow:
            inset 0 2px 2px rgba(255, 255, 255, 0.84),
            inset 0 -1px 2px rgba(110, 110, 110, 0.22),
            0 0 16px rgba(255, 255, 255, 0.35),
            0 14px 30px rgba(180, 180, 180, 0.38);
    }
    100% {
        background: linear-gradient(180deg, #e4e4e4 0%, #b0b0b0 55%, #8e8e8e 100%);
        box-shadow:
            inset 0 2px 1px rgba(255, 255, 255, 0.72),
            inset 0 -1px 2px rgba(90, 90, 90, 0.25),
            0 12px 24px rgba(0, 0, 0, 0.28);
    }
}

@keyframes countdown-sparkle-twinkle {
    0%, 18%, 38%, 58%, 78%, 100% {
        opacity: 0.1;
        transform: scale(0.95);
    }
    8%, 48%, 88% {
        opacity: 0.72;
        transform: scale(1.07);
    }
    28%, 68% {
        opacity: 0.45;
        transform: scale(1.02);
    }
}

@-webkit-keyframes countdown-sparkle-twinkle {
    0%, 18%, 38%, 58%, 78%, 100% {
        opacity: 0.1;
        -webkit-transform: scale(0.95);
        transform: scale(0.95);
    }
    8%, 48%, 88% {
        opacity: 0.72;
        -webkit-transform: scale(1.07);
        transform: scale(1.07);
    }
    28%, 68% {
        opacity: 0.45;
        -webkit-transform: scale(1.02);
        transform: scale(1.02);
    }
}

@keyframes countdown-light-flash {
    0%, 62%, 100% {
        opacity: 0;
        transform: scale(0.92);
    }
    66% {
        opacity: 0.85;
        transform: scale(1.08);
    }
    72% {
        opacity: 0.1;
        transform: scale(0.98);
    }
    76% {
        opacity: 0.65;
        transform: scale(1.03);
    }
}

@-webkit-keyframes countdown-light-flash {
    0%, 62%, 100% {
        opacity: 0;
        -webkit-transform: scale(0.92);
        transform: scale(0.92);
    }
    66% {
        opacity: 0.85;
        -webkit-transform: scale(1.08);
        transform: scale(1.08);
    }
    72% {
        opacity: 0.1;
        -webkit-transform: scale(0.98);
        transform: scale(0.98);
    }
    76% {
        opacity: 0.65;
        -webkit-transform: scale(1.03);
        transform: scale(1.03);
    }
}

.countdown-unit[data-unit="seconds"] {
    width: 70px;
}

.countdown-value {
    /*min-width: 4.25rem;*/
    padding: 0.55rem 0.8rem;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #e4e4e4 0%, #b0b0b0 55%, #8e8e8e 100%);
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.72),
        inset 0 -1px 2px rgba(90, 90, 90, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: "Bellota", system-ui;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: background, box-shadow, transform, opacity;
    -webkit-animation: countdown-silver-shimmer 2.3s ease-in-out infinite;
    animation: countdown-silver-shimmer 2.3s ease-in-out infinite;
}

.countdown-value::before,
.countdown-value::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity, transform;
}

.countdown-value::before {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 9%, transparent 38%) 18% 24% / 18px 18px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.95) 50%, transparent 53%) 18% 24% / 18px 18px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.92) 50%, transparent 53%) 18% 24% / 18px 18px no-repeat,
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.88) 50%, transparent 52%) 18% 24% / 18px 18px no-repeat,
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.88) 50%, transparent 52%) 18% 24% / 18px 18px no-repeat,
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 8%, transparent 40%) 76% 32% / 16px 16px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.82) 50%, transparent 53%) 76% 32% / 16px 16px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.82) 50%, transparent 53%) 76% 32% / 16px 16px no-repeat;
    opacity: 0.18;
    mix-blend-mode: screen;
    -webkit-animation: countdown-sparkle-twinkle 2s ease-in-out infinite;
    animation: countdown-sparkle-twinkle 2s ease-in-out infinite;
}

.countdown-value::after {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 1) 0 10%, transparent 42%) 34% 70% / 20px 20px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.95) 50%, transparent 53%) 34% 70% / 20px 20px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.92) 50%, transparent 53%) 34% 70% / 20px 20px no-repeat,
        linear-gradient(35deg, transparent 48%, rgba(255, 255, 255, 0.9) 50%, transparent 52%) 34% 70% / 20px 20px no-repeat,
        linear-gradient(-35deg, transparent 48%, rgba(255, 255, 255, 0.9) 50%, transparent 52%) 34% 70% / 20px 20px no-repeat,
        radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 9%, transparent 42%) 82% 74% / 14px 14px no-repeat,
        linear-gradient(transparent 47%, rgba(255, 255, 255, 0.86) 50%, transparent 53%) 82% 74% / 14px 14px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.86) 50%, transparent 53%) 82% 74% / 14px 14px no-repeat;
    opacity: 0;
    mix-blend-mode: screen;
    -webkit-filter: blur(0.2px);
    filter: blur(0.2px);
    -webkit-animation: countdown-light-flash 4.4s ease-in-out infinite;
    animation: countdown-light-flash 4.4s ease-in-out infinite;
}

/* Safari fallback: blend/filter combos can make sparkles disappear intermittently */
@supports (-webkit-touch-callout: none) {
    .countdown-value::before,
    .countdown-value::after,
    .sidebar-logo-text::before,
    .sidebar-logo-text::after {
        mix-blend-mode: normal;
    }

    .countdown-value::after,
    .sidebar-logo-text::after {
        -webkit-filter: none;
        filter: none;
    }
}

.countdown-label {
    font-family: "Bellota", system-ui;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 0.92);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

#countdown.is-expired .countdown-value {
    background: linear-gradient(180deg, #8e7765 0%, #5b4637 100%);
    animation: none;
}

#countdown-navbar-host {
    display: inline-flex;
    align-items: center;
    margin-left: 0.75rem;
}

#countdown.countdown-in-navbar {
    margin: 0;
    gap: 1rem;
}

#countdown.countdown-in-navbar .countdown-unit {
    gap: 0.2rem;
}

#countdown.countdown-in-navbar .countdown-value {
    min-width: 4.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.55rem;
    font-size: 1.45rem;
}

#countdown.countdown-in-navbar .countdown-value::before {
    opacity: 0.14;
}

#countdown.countdown-in-navbar .countdown-value::after {
    animation-duration: 5.4s;
}

#countdown.countdown-in-navbar .countdown-label {
    /*font-size: 0.5rem;*/
    color: #000000bf;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-logo-text,
    .sidebar-logo-text::before,
    .sidebar-logo-text::after,
    .countdown-value,
    .countdown-value::before,
    .countdown-value::after {
        animation: none !important;
    }
}

html {
    scroll-behavior: smooth;
}

#top,
.one-page-section {
    scroll-margin-top: 5rem;
}

.one-page-home > p {
    margin-bottom: 3rem;
}

.one-page-section {
    padding: 2.5rem 0;
}

.one-page-section .page-title {
    margin-top: 0;
}

.map-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.map-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive video embeds (YouTube/Vimeo) */
iframe[src*="youtube.com"],
iframe[src*="youtu.be"],
iframe[src*="vimeo.com"] {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

/* Two-column image gallery for markdown pages */
.image-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-grid-two img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.6rem;
}

@media (max-width: 768px) {
    #countdown-sidebar-host {
        margin-bottom: 9rem;
    }

    .image-grid-two {
        grid-template-columns: 1fr;
    }

    .timeline-img,
    .justmarried-img,
    .img_gijon,
    .video-container {
        width: 100% !important;
    }

    /*!* Responsive video embeds (YouTube/Vimeo) *!*/
    /*iframe[src*="youtube.com"],*/
    /*iframe[src*="youtu.be"],*/
    /*iframe[src*="vimeo.com"] {*/
    /*    width: 100%;*/
    /*    max-width: 100%;*/
    /*    aspect-ratio: 16 / 9;*/
    /*    height: auto;*/
    /*    display: block;*/
    /*}*/
}

/* Language switcher */

.lang-switcher {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0 0.5rem;
    padding: 0 1rem;
}

.lang-btn {
    padding: 0.2rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    text-decoration: none !important;
    opacity: 1;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
    border-bottom-color: #fff !important;
}

.lang-switcher .lang-btn.no-push-state::after {
    content: none !important;
    display: none !important;
}

.lang-btn:hover {
    background-color: #afabab;
}

.lang-btn.active {
    opacity: 1;
    background-color: rgba(255,255,255);
    border-color: #fff !important;
    color: #afabab;
}

/* Navbar: remove theme shadows */
#_navbar,
#_navbar .content,
#_navbar .content::before,
#_navbar .nav-btn-bar {
    box-shadow: none !important;
    filter: none !important;
}

/*El gran dia*/

.timeline-img {
    width: 50%;
}

/* Serpentinas / confetti falling from countdown */
@keyframes serpentina-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(260px) translateX(var(--drift, 60px)) rotate(calc(var(--rot, 0deg) + 540deg));
        opacity: 0;
    }
}

.serpentina-piece {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    animation: serpentina-fall linear forwards;
}

.serpentina-piece.serpentina {
    width: 6px;
    height: 18px;
    border-radius: 2px;
}

.serpentina-piece.circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
