.rotate-right-90 .modal-image {
    transform: rotate(90deg);
    transform-origin: center center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.rotate-left-90 .modal-image-wrapper {
    height: 100%;
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
}

.rotate-left-90 .modal-info {
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    gap: 6px;
}

.rotate-left-90 .modal-image-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    height: 100%;
}

.rotate-left-90 .modal-camera-selector-label {
    text-align: center;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotate-left-90 .modal-camera-list {
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 1.5dvh, 8px);
    background: transparent;
    border-radius: 6px;
    z-index: 10002;
    align-self: center;
}

.rotate-left-90 .modal-image {
    transform: rotate(-90deg);
    transform-origin: center center;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Rotate back to normal when closing fullscreen */
.slider-modal.reverse-rotate.rotate-right-90 .modal-image,
.slider-modal.reverse-rotate.rotate-left-90 .modal-image {
    transform: rotate(0deg);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}