.presentation-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    z-index: 99999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.presentation-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.presentation-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
    cursor: pointer;
}

.presentation-image.zoomed {
    max-width: none;
    max-height: none;
}

.presentation-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-out;
}

.presentation-image-wrapper.prev {
    transform: translateX(-100%);
}

.presentation-image-wrapper.current {
    transform: translateX(0);
}

.presentation-image-wrapper.next {
    transform: translateX(100%);
}

.presentation-image-wrapper.transitioning {
    transition: none;
}

.presentation-name {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    z-index: 10;
    pointer-events: none;
}

.presentation-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding-top: env(safe-area-inset-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 24px;
    padding-right: 24px;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.presentation-controls.show {
    opacity: 1;
    visibility: visible;
}

.presentation-btn {
    font-size: 16px;
    color: #FFFFFF;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
}

.presentation-btn:hover {
    opacity: 0.8;
}

.presentation-counter {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #FFFFFF;
    z-index: 10;
}

.presentation-drawer-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.presentation-drawer-mask.show {
    opacity: 1;
    visibility: visible;
}

.presentation-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 31;
}

.presentation-drawer-mask.show .presentation-drawer {
    transform: translateY(0);
}

.presentation-drawer-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.presentation-drawer-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.presentation-drawer-close::before,
.presentation-drawer-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #FFFFFF;
}

.presentation-drawer-close::before {
    transform: rotate(45deg);
}

.presentation-drawer-close::after {
    transform: rotate(-45deg);
}

.presentation-param-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.presentation-param-row:last-child {
    border-bottom: none;
}

.presentation-param-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.presentation-param-value {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
}

.presentation-swipe-hint {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.presentation-swipe-hint.right {
    left: auto;
    right: 20px;
}

.presentation-swipe-hint::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: swipeHint 1.5s infinite;
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px);
        opacity: 1;
    }
}

.presentation-swipe-hint.right::after {
    animation: swipeHintRight 1.5s infinite;
}

@keyframes swipeHintRight {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-10px);
        opacity: 1;
    }
}

@media (orientation: landscape) {
    .presentation-image {
        max-width: none;
        max-height: 100%;
    }
}

@media (min-width: 768px) {
    .presentation-swipe-hint {
        display: none;
    }
}
