/* RUYA_TEACHER_GALLERY_VIEWER_V5_PORTAL_FIX */

/*
  ONEMLI:
  Viewer RuyaViewportPortal ile body altina render oluyor.
  Bu nedenle .role-teacher prefix KULLANILMIYOR.
  Asagidaki classlar yalniz teacher album viewer'a ozeldir.
*/

.ruyaTeacherAlbumPreviewBackV3 {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 10px !important;

    background: rgba(15, 25, 48, .62) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;

    overflow: hidden !important;
}

.ruyaTeacherAlbumPreviewV3 {
    display: flex !important;
    flex-direction: column !important;

    width: min(760px, calc(100vw - 20px)) !important;
    height: auto !important;

    max-height: calc(100dvh - 20px) !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    border-radius: 24px !important;
    background: #fff !important;

    box-shadow:
        0 28px 70px rgba(7, 18, 45, .30) !important;
}

/* HEADER */

.ruyaTeacherAlbumPreviewHeadV3 {
    flex: 0 0 auto !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;

    padding: 20px 22px 18px !important;

    background: #fff !important;
    border-bottom: 1px solid #e8ebf2 !important;
}

.ruyaTeacherAlbumPreviewHeadingV3 {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.ruyaTeacherAlbumPreviewHeadingV3 small {
    display: block !important;

    margin: 0 0 7px !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;

    color: #697386 !important;
}

.ruyaTeacherAlbumPreviewHeadingV3 h3 {
    margin: 0 !important;

    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 750 !important;

    color: #182746 !important;
}

.ruyaTeacherAlbumPreviewHeadingV3 p {
    margin: 10px 0 0 !important;

    font-size: 15px !important;
    line-height: 1.35 !important;

    color: #3f4858 !important;
}

.ruyaTeacherAlbumPreviewCloseV3 {
    flex: 0 0 44px !important;

    width: 44px !important;
    height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #f2f4f8 !important;
    color: #17305f !important;

    font-size: 28px !important;
    line-height: 1 !important;
}

/* VIEWER ALANI */

.ruyaTeacherAlbumViewerV3 {
    flex: 1 1 auto !important;
    min-height: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 14px 16px 16px !important;

    overflow: hidden !important;
}

/*
  Kritik fix:
  stage artik sabit viewport yuksekliginde.
  Resim bunun disina buyuyemez.
*/

.ruyaTeacherAlbumStageV3 {
    position: relative !important;

    flex: 0 0 min(56dvh, 520px) !important;

    width: 100% !important;
    height: min(56dvh, 520px) !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: min(56dvh, 520px) !important;

    display: block !important;

    overflow: hidden !important;

    border-radius: 17px !important;
    background: #f3f4f7 !important;
}

/*
  Resim/video stage icine kilitleniyor.
  Natural image height artik layout'u buyutemez.
*/

.ruyaTeacherAlbumStageV3 > img,
.ruyaTeacherAlbumStageV3 > video {
    position: absolute !important;

    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 100% !important;
    max-height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: #f3f4f7 !important;
}

/* OKLAR */

.ruyaTeacherAlbumArrowV3 {
    position: absolute !important;
    top: 50% !important;

    z-index: 8 !important;

    width: 44px !important;
    height: 44px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    transform: translateY(-50%) !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: rgba(255,255,255,.92) !important;
    color: #15284f !important;

    box-shadow:
        0 5px 18px rgba(12,25,52,.18) !important;

    font-size: 24px !important;
    line-height: 1 !important;
}

.ruyaTeacherAlbumArrowPrevV3 {
    left: 12px !important;
}

.ruyaTeacherAlbumArrowNextV3 {
    right: 12px !important;
}

/* SAYAC */

.ruyaTeacherAlbumCounterV3 {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;

    z-index: 9 !important;

    padding: 6px 10px !important;

    border-radius: 999px !important;

    background: rgba(19,34,70,.82) !important;
    color: #fff !important;

    font-size: 12px !important;
    font-weight: 700 !important;
}

/* THUMBNAILS */

.ruyaTeacherAlbumThumbsV3 {
    flex: 0 0 auto !important;

    display: flex !important;
    gap: 8px !important;

    width: 100% !important;

    margin: 12px 0 0 !important;
    padding: 0 0 2px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    -webkit-overflow-scrolling: touch !important;
}

.ruyaTeacherAlbumThumbsV3 > button {
    flex: 0 0 58px !important;

    width: 58px !important;
    height: 58px !important;

    padding: 0 !important;

    overflow: hidden !important;

    border-radius: 11px !important;
}

.ruyaTeacherAlbumThumbsV3 img,
.ruyaTeacherAlbumThumbsV3 video {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
}

/* MOBILE */

@media (max-width: 640px) {

    .ruyaTeacherAlbumPreviewBackV3 {
        padding: 8px !important;
    }

    .ruyaTeacherAlbumPreviewV3 {
        width: calc(100vw - 16px) !important;
        max-height: calc(100dvh - 16px) !important;

        border-radius: 21px !important;
    }

    .ruyaTeacherAlbumPreviewHeadV3 {
        padding: 16px 16px 14px !important;
        gap: 12px !important;
    }

    .ruyaTeacherAlbumPreviewHeadingV3 h3 {
        font-size: 21px !important;
    }

    .ruyaTeacherAlbumPreviewHeadingV3 p {
        margin-top: 8px !important;
        font-size: 14px !important;
    }

    .ruyaTeacherAlbumPreviewCloseV3 {
        flex-basis: 42px !important;

        width: 42px !important;
        height: 42px !important;
    }

    .ruyaTeacherAlbumViewerV3 {
        padding: 10px 10px 12px !important;
    }

    .ruyaTeacherAlbumStageV3 {
        flex-basis: 48dvh !important;

        height: 48dvh !important;
        max-height: 48dvh !important;

        min-height: 0 !important;

        border-radius: 15px !important;
    }

    .ruyaTeacherAlbumArrowV3 {
        width: 40px !important;
        height: 40px !important;

        font-size: 21px !important;
    }

    .ruyaTeacherAlbumArrowPrevV3 {
        left: 8px !important;
    }

    .ruyaTeacherAlbumArrowNextV3 {
        right: 8px !important;
    }

    .ruyaTeacherAlbumCounterV3 {
        top: 8px !important;
        right: 8px !important;
    }

    .ruyaTeacherAlbumThumbsV3 > button {
        flex-basis: 52px !important;

        width: 52px !important;
        height: 52px !important;
    }
}

/* KISA TELEFON */

@media (max-height: 720px) and (max-width: 640px) {

    .ruyaTeacherAlbumStageV3 {
        flex-basis: 42dvh !important;

        height: 42dvh !important;
        max-height: 42dvh !important;
    }

    .ruyaTeacherAlbumPreviewHeadV3 {
        padding-top: 12px !important;
        padding-bottom: 11px !important;
    }

    .ruyaTeacherAlbumThumbsV3 > button {
        flex-basis: 46px !important;

        width: 46px !important;
        height: 46px !important;
    }
}
