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

body, html {
    font-family: 'Arial', 'sans-serif';
    background-color: #f4f2ef;
    color: #2c2c2c;
}

.gallery-section {
    width: 100%;
    padding: 2rem 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    width: 100%;
    height: 400px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    max-width: 100%;
    max-height: 80%;
    margin: auto; 
    object-fit: contain; 
    display: block;
    cursor: pointer;
    transition-duration: 300ms;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

.description {
    margin-top: 0.5rem;
    text-align: center;
}

.description h3 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.description p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.image-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;     
    justify-content: center; 
    border-radius: 10px;
    padding: 60px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    max-width: 90vw;
    max-height: 80vh;
}

.image-popup img {
    max-width: 45vw;
    max-height: 75vh;
    padding-bottom: 15px;
}

.image-popup h1 {
    margin-bottom: 10px;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 34px;
    cursor: pointer;
    color: #444;
}

.close-btn:hover {
    color: #000;
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2; 
    display: none; 
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
