.gallery-page{
    max-width:1200px;
    margin:auto;
    padding:120px 30px 60px;
}

.gallery-page h1 {
    color: var(--color-text);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
}
.gallery-page h1::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background: var(--color-text-second);
    margin: 10px auto 0;
    opacity: 0.5;
}

.gallery-placement {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:20px;
}

.gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

.gallery img:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox.active{
    display:flex;
}
.gallery a{
    display:block;
}

.gallery img {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.gallery img.show {
    opacity: 1;
    transform: translateY(0);
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
 
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 25px;
    right: 30px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    color: white;
    cursor: pointer;

    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;

    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);

    transition: all 0.25s ease;
    z-index: 99999;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}
.lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}