/* Reset basic elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: visible !important;

}

html {
    background-color: #FAEDE7;
}

/* Body styling */
body {
    font-family: 'Playfair Display', serif;
    background-color: #D51D48;
    color: #f7d3c3;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    border: 15px solid #FAEDE7;
    padding: 45px 0 30px;
    border-radius: 30px;
}

h2 {
    font-family: inherit;
}

/* Container to center content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Title styling */
#title {
    font-size: 8em;
    margin: 10px 0;
    color: #FAEDE7;
    letter-spacing: 5px;
    font-weight: normal;
    font-family: 'Mrs Saint Delafield', cursive;
    line-height: 1em;
}

/* Message styling */
#message {
    margin-bottom: 60px;
    color: #f7d3c3;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 30px;
}

/* Counter block styling */
#counter {
    font-size: 1.4em;
    margin-bottom: 60px;
    color: #FAEDE7;
    border: 2px solid #f24563;
    border-radius: 20px;
    padding: 10px;
    background-color: #f24563;
    font-weight: bold;
}

.counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.counter-block {
    background-color: #F24463;
    border: 2px solid #f24563;
    border-radius: 20px;
    padding: 10px;
    width: 20%;
    text-align: center;
    color: #FAEDE7;
}

.counter-number {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.counter-label {
    font-size: 0.8em;
    text-transform: uppercase;
}

/* Audio block styling */
#audio-block {
    margin-bottom: 60px;
}

#audio-block h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #FAEDE7;
}

#audio-content {
    display: block;
    justify-content: center;
    width: 100%;
    max-width: 100%; 
    overflow: visible;
    min-height: 100px;
   
    padding: 1rem 0;
}

#audio-content iframe,
#audio-content audio, #audio-content audio {

    border-radius: 20px;
    max-width: 100%;
    display: block;
           width:100% !important;
       min-height: 50px !important;
             box-sizing: content-box;


}

/* Media gallery styling */
#media-block {
    margin-bottom: 60px;
}

#media-block h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #FAEDE7;
}

#media-gallery {
    column-count: 4;
    column-gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 10px;
   
}

.gallery-item img,
.video-placeholder {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    
}

/* Video placeholder styling */
.video-placeholder {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    background-color: #000;
    border-radius: 20px;
}

.video-placeholder::before {
    content: "";
    display: block;
    padding-top: 75%;
}

.video-placeholder svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-placeholder,
.video-placeholder svg {
    border-radius: 20px;
}
/* Video Thumbnail Wrapper */
.video-thumb {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Thumbnail Image */
.video-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* Play Icon Overlay */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Adjust SVG Size if Necessary */
.play-icon svg {
    width: 50px;
    height: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #media-gallery {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    #media-gallery {
        column-count: 2;
    }
}

@media (max-width: 480px) {
    #media-gallery {
        column-count: 1;
    }

    #title {
        font-size: 2em;
    }

    #counter {
        font-size: 1.2em;
    }
}

/* Hidden class */
.hidden {
    display: none;
}

/* LightGallery customizations */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.9);
}

.lg-toolbar {
    top: 10px;
    right: 10px;
}

.lg-sub-html {
    bottom: 0;
}

.lg-sub-html h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.lg-sub-html p {
    color: #ccc;
    font-size: 1em;
}

.lg-next,
.lg-prev {
    font-size: 2em;
    color: #fff;
}

.lg-close {
    color: #fff;
    font-size: 1.5em;
}

.lg-download {
    display: none;
}

/* Floating Hearts Animation */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

.heart {
    position: fixed;
    bottom: -50px;
    left: 50%;
    width: var(--heart-size, 20px);
    height: var(--heart-size, 20px);
    background-color: #F24463;
    opacity: 0.7;
    transform: translateX(-50%) rotate(-45deg);
    animation: float var(--animation-duration, 15s) linear infinite;
    animation-delay: var(--animation-delay, 0s);
    z-index: 9999;
    pointer-events: none;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: var(--heart-size, 20px);
    height: var(--heart-size, 20px);
    background-color: #F24463;
    border-radius: 50%;
}

.heart::before {
    top: calc(-0.5 * var(--heart-size, 20px));
    left: 0;
}

.heart::after {
    top: 0;
    left: calc(0.5 * var(--heart-size, 20px));
}

/* Individual hearts */
.heart:nth-child(1) {
    left: 10%;
    --heart-size: 12px;
    --animation-duration: 17s;
    --animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 20%;
    --heart-size: 14px;
    --animation-duration: 12s;
    --animation-delay: 2s;
}

.heart:nth-child(3) {
    left: 30%;
    --heart-size: 10px;
    --animation-duration: 18s;
    --animation-delay: 4s;
}

.heart:nth-child(4) {
    left: 40%;
    --heart-size: 16px;
    --animation-duration: 10s;
    --animation-delay: 6s;
}

.heart:nth-child(5) {
    left: 50%;
    --heart-size: 14px;
    --animation-duration: 20s;
    --animation-delay: 8s;
}

.heart:nth-child(6) {
    left: 60%;
    --heart-size: 18px;
    --animation-duration: 16s;
    --animation-delay: 10s;
}

.heart:nth-child(7) {
    left: 70%;
    --heart-size: 12px;
    --animation-duration: 14s;
    --animation-delay: 12s;
}

.heart:nth-child(8) {
    left: 80%;
    --heart-size: 16px;
    --animation-duration: 17s;
    --animation-delay: 14s;
}

.heart:nth-child(9) {
    left: 90%;
    --heart-size: 10px;
    --animation-duration: 13s;
    --animation-delay: 16s;
}

.heart:nth-child(10) {
    left: 25%;
    --heart-size: 14px;
    --animation-duration: 19s;
    --animation-delay: 18s;
}