﻿/* Banner */
.gallery-banner {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
    border-radius: 0 0 14px 14px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.gallery-banner h1 {
    font-size: 34px;
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
}

/* Gallery grid */
.gallery-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}

    .gallery-card:hover {
        transform: scale(1.03);
    }

    .gallery-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
    }

.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Popup modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    z-index: 100;
}

    .gallery-modal.open {
        display: flex;
    }

.modal-inner {
    background: #fff;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    animation: zoomIn 0.3s ease;
}

    .modal-inner img {
        width: 100%;
        height: auto;
        display: block;
    }

.modal-title {
    padding: 12px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    background: #f7f7f7;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


