.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.photo-gallery__item {
    display: block;
    box-sizing: content-box;
    flex: 0 0 150px;
    width: 150px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px rgba(128, 128, 128, 0.5);
}

.photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.photo-gallery__item:hover img {
    transform: scale(1.05);
}

@media only screen and (min-width: 981px) {
    .et_pb_row.damage-gallery-row--equal-height .et_pb_image {
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }

    .et_pb_row.damage-gallery-row--equal-height .et_pb_image_wrap {
        display: block;
        width: 100%;
        aspect-ratio: 2 / 3;
        overflow: hidden;
    }

    .et_pb_row.damage-gallery-row--equal-height .et_pb_image_wrap img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
    }
}

.glyptic-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
}

.glyptic-lightbox.is-open {
    display: flex;
}

.glyptic-lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

@media only screen and (min-width: 768px) {
    .glyptic-lightbox {
        top: var(--glyptic-header-height, 89.3906px);
        padding: 20px 0 40px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .glyptic-lightbox__image {
        display: block;
        width: auto;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }
}

.glyptic-lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
}

.glyptic-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glyptic-lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.65);
}

.glyptic-lightbox__nav--prev {
    left: 20px;
}

.glyptic-lightbox__nav--next {
    right: 20px;
}

.glyptic-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

body.glyptic-lightbox-open {
    overflow: hidden;
}
