﻿
.gallery-img {
    cursor: pointer;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Modal overlay */
.img-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms;
    z-index: 10500;
    padding: 1rem;
}

    .img-modal.open {
        opacity: 1;
        visibility: visible;
    }

.img-modal-body {
    position: relative;
    max-width: 92%;
    max-height: 92%;
}

.img-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform-origin: center center;
    transition: transform 160ms ease;
    display: block;
}

.img-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 2rem;
    color: #fff;
    background: transparent;
    border: none;
    line-height: 1;
    cursor: pointer;
    z-index: 10600;
}

.img-zoom-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 10600;
}

    .img-zoom-controls button {
        background: rgba(0,0,0,0.6);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.1);
        width: 36px;
        height: 36px;
        border-radius: 4px;
        font-size: 1.25rem;
        cursor: pointer;
    }
