* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background-color: #1a1a1a;
    background-image: url('regret-statue-outside-louvre2_1600.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f0f0f0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.85);
    z-index: -1;
}

.main-title {
    font-family: 'Georgia', serif;
    text-align: center;
    font-size: 5rem;
    color: #e0e0e0;
    margin: 20px 0 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 4px 6px 20px rgba(0,0,0,0.7);
    line-height: 1;
}

/* Slightly smaller on narrow screens */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
        margin: 16px 0 20px;
    }
}

.container {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-header {
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-overlay:hover {
    opacity: 0.8;
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button:active {
    transform: scale(0.95);
}

.conditional-pattern-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    transform-origin: center;
    will-change: transform, opacity;
    /* gentle floating + zoom animation */
    animation: floatZoom 6s ease-in-out infinite;
    transition: box-shadow 0.25s ease;
}

/* pause animation on hover so users can read comfortably */
.conditional-pattern-header:hover {
    animation-play-state: paused;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* keyframes for move + zoom */
@keyframes floatZoom {
    0% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-8px) scale(1.02);
        opacity: 0.98;
    }
    50% {
        transform: translateY(-12px) scale(1.03);
        opacity: 1;
    }
    75% {
        transform: translateY(-8px) scale(1.02);
        opacity: 0.99;
    }
    100% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
}

.conditional-pattern-header h2 {
    font-size: 1.8rem;
    color: #4a90e2;
    margin-bottom: 10px;
}

.conditional-pattern-header p {
    font-size: 1.2rem;
    color: #ccc;
}

.wall-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 10px;
    color: #e0e0e0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.wall-description {
    text-align: center;
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 40px;
}

.images-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-tile {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #2a2a2a;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.image-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(74, 144, 226, 0.9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-tile:hover .image-overlay {
    transform: translateY(0);
}

.overlay-text {
    color: white;
    font-size: 18px;
    line-height: 1.4;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    background-color: #2a2a2a;
    border-radius: 12px;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: white;
}

.modal-image {
    margin-bottom: 20px;
}

.modal-image img {
    max-width: 100%;
    border-radius: 8px;
}

.modal-text {
    font-size: 1.5rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.reliefs-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.relief-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 12px;
    padding: 30px;
    border-left: 5px solid #4a90e2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.relief-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.original-text {
    font-size: 1.1rem;
    color: #aaa;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #444;
}

.relief-text {
    font-size: 1.3rem;
    color: #4a90e2;
    line-height: 1.6;
    font-weight: 500;
}

.relief-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px;
}

@media (max-width: 768px) {
    .wall-title {
        font-size: 3rem;
    }
    
    .wall-description {
        font-size: 1.3rem;
    }
    
    .images-wall {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .relief-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .conditional-pattern-header h2 {
        font-size: 1.5rem;
    }
    
    .conditional-pattern-header p {
        font-size: 1rem;
    }
}

