.header-divider {
    margin: 8px auto 20px;
    border: 0;
    border-top: 1px solid #ccc;
    max-width: 300px;
}



.gallery-caption {
    padding: 10px 12px 12px;
    font-size: 14px;
    text-align: center;
    color: #444;
}

@media (max-width: 900px) {
    .gallery-item {
        width: 45%;
        max-width: 320px;
    }
}

@media (max-width: 600px) {
    .gallery {
        gap: 15px;
    }

    .gallery-item {
        width: 100%;
        max-width: 360px;
    }

    .gallery-image-wrapper {
        height: 200px;
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
}

.modal-caption {
    margin-top: 10px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

.modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    color: #333;
    transition: all 0.25s ease;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background: #000;
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

.gallery {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.02);
    opacity: 0.9;
}
