
body {
    margin: 0;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
}

.wrap {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.card {
    background: #1b1b1b;
    border-radius: 18px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid rgba(212, 175, 55, .35);
    box-shadow: 0 0 25px rgba(212, 175, 55, .08);
}

h1 {
    text-align: center;
}

.main-photo {

    width: 100%;
    max-height: 650px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    display: block;
    transition: .3s;

}

.main-photo:hover {
    transform: scale(1.01);
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.thumb {
    border: 2px solid transparent;
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: .8;
    transition: .2s;
    flex-shrink: 0;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumb.active {
    border: 3px solid #d4af37;
    opacity: 1;
}

.counter {
    margin-top: 10px;
    color: #d4af37;
    font-weight: bold;
}

#lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: pointer;
}

#closeBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #d4af37;
    font-size: 24px;
    cursor: pointer;
    z-index: 100001;
}

#lb img {
    max-width: 95vw;
    max-height: 95vh;
}

#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #d4af37;
    color: #111;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
}

#prevBtn {
    left: 30px;
}

#nextBtn {
    right: 30px;
}
