#lightbox {
    transition: opacity 0.3s ease;
}

#lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

header {
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-logo {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .group.relative.h-80 {
        height: 12rem !important;
    }

    .preview-section {
        margin-bottom: 1rem;
    }

    body {
        -webkit-overflow-scrolling: touch;
    }

    [onclick^="openLightbox"] {
        min-width: 64px;
        min-height: 64px;
    }

    button[onclick="toggleLanguageMenu()"] {
        padding: 0.5rem;
        font-size: 0.875rem;
        left: 1rem !important;
        top: 1rem !important;
    }
}

.preview-section {
    position: relative;
    overflow: hidden;
}

.preview-section::before {
    content: "★";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg);
}

.preview-section img {
    transition: transform 0.3s ease;
}

.preview-section img:hover {
    transform: scale(1.05);
}

#languageModal button {
    transition: all 0.2s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease-out;
}

@media (max-width: 640px) {
    #languageModal div {
        width: 95%;
        margin: 0 auto;
    }
}