/* Photo zoom effects — plain CSS, no Tailwind build required */

.photo-zoom-viewport {
    max-height: 75vh;
    max-width: min(100%, 42rem);
    overflow: hidden;
    cursor: zoom-in;
}

.photo-zoom-image {
    display: block;
    max-height: 75vh;
    width: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    will-change: transform;
}

.photo-gallery-main {
    display: flex;
    height: 18rem;
    width: 100%;
    cursor: zoom-in;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    outline: none;
}

.photo-gallery-main:focus-visible {
    box-shadow: inset 0 0 0 2px #1f2937;
}

@media (min-width: 640px) {
    .photo-gallery-main {
        height: 20rem;
    }
}

@media (min-width: 768px) {
    .photo-gallery-main {
        height: 24rem;
    }
}

@media (min-width: 1024px) {
    .photo-gallery-main {
        height: 28rem;
    }
}

.photo-gallery-main-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

.photo-gallery-main-video {
    position: relative;
    cursor: default;
}

.photo-gallery-main-video-el,
.photo-zoom-video {
    display: block;
    max-height: 75vh;
    max-width: 100%;
    width: 100%;
    object-fit: contain;
    background-color: #000;
}

.photo-gallery-main-video-el {
    max-height: 100%;
}

.photo-video-viewport {
    cursor: default;
}

.photo-gallery-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(0 0 0 / 0.35);
    color: #fff;
    pointer-events: none;
}

.photo-thumb-preview video {
    width: 11rem;
    height: 11rem;
    border-radius: 0.5rem;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.35);
    background-color: #000;
}

@media (min-width: 640px) {
    .photo-thumb-preview video {
        width: 13rem;
        height: 13rem;
    }
}


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

.photo-gallery-thumb:hover .photo-gallery-thumb-img {
    transform: scale(1.1);
}

.photo-thumb-btn {
    position: relative;
    overflow: visible;
    border-radius: 0.5rem;
    border: 1px solid #e7e5e4;
    background-color: #f5f5f4;
}

.photo-thumb-btn-inner {
    display: block;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
}

.photo-thumb-img {
    pointer-events: none;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}

.photo-thumb-btn:hover .photo-thumb-img {
    transform: scale(1.1);
}

.photo-thumb-preview {
    display: none;
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    z-index: 30;
    pointer-events: none;
    transform: translateX(-50%);
}

.photo-thumb-btn:hover .photo-thumb-preview {
    display: block;
}

.photo-thumb-preview img {
    width: 11rem;
    height: 11rem;
    border-radius: 0.5rem;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.35);
}

@media (min-width: 640px) {
    .photo-thumb-preview img {
        width: 13rem;
        height: 13rem;
    }
}
