/* RUYA_TEACHER_GALLERY_VIEWER_V3_CSS_20261015 */

/* ======================================================
   THREE DOT MENU
   ====================================================== */

.role-teacher .ruyaTeacherGalleryCard .ruyaAdminGalleryMenuWrap {
  position: relative !important;
}

.role-teacher .ruyaTeacherGalleryCard .ruyaAdminGalleryMenu {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  z-index: 100 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2px !important;

  width: 150px !important;
  min-width: 150px !important;

  padding: 6px !important;

  border: 1px solid #e4e8f0 !important;
  border-radius: 13px !important;

  background: #fff !important;

  box-shadow:
    0 14px 35px rgba(18,32,70,.17) !important;
}

.role-teacher .ruyaTeacherGalleryCard
.ruyaAdminGalleryMenu button {
  display: block !important;

  width: 100% !important;
  min-height: 40px !important;

  margin: 0 !important;
  padding: 0 11px !important;

  border: 0 !important;
  border-radius: 9px !important;

  background: transparent !important;

  color: #17254d !important;

  font-size: 13px !important;
  font-weight: 650 !important;
  text-align: left !important;
}

.role-teacher .ruyaTeacherGalleryCard
.ruyaAdminGalleryMenu button.danger {
  color: #c83348 !important;
}

.role-teacher .ruyaTeacherGalleryCard
.ruyaAdminGalleryMenu button:active {
  background: #f5f7fb !important;
}


/* ======================================================
   VIEWER V3
   ====================================================== */

.role-teacher .ruyaTeacherAlbumPreviewBackV3 {
  padding: 10px !important;

  background:
    rgba(16,28,57,.60) !important;

  backdrop-filter:
    blur(8px) !important;
}

.role-teacher .ruyaTeacherAlbumPreviewV3 {
  width:
    min(760px,calc(100vw - 20px)) !important;

  max-height: 92dvh !important;

  padding: 0 !important;

  overflow: hidden !important;

  border-radius: 24px !important;

  background: #fff !important;

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

.role-teacher .ruyaTeacherAlbumPreviewHeadV3 {
  position: relative !important;
  top: auto !important;

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

  padding:
    18px 20px 16px !important;

  border-bottom:
    1px solid #edf0f5 !important;

  background: #fff !important;

  backdrop-filter: none !important;
}

.role-teacher .ruyaTeacherAlbumPreviewHeadingV3 {
  min-width: 0 !important;
}

.role-teacher
.ruyaTeacherAlbumPreviewHeadingV3 small {
  display: block !important;

  margin-bottom: 5px !important;

  color: #81899c !important;

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

.role-teacher
.ruyaTeacherAlbumPreviewHeadingV3 h3 {
  margin: 0 !important;

  color: #132148 !important;

  font-size: 22px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
}

.role-teacher
.ruyaTeacherAlbumPreviewHeadingV3 p {
  margin: 7px 0 0 !important;

  color: #717a8e !important;

  font-size: 13px !important;
  line-height: 1.4 !important;
}

.role-teacher .ruyaTeacherAlbumPreviewCloseV3 {
  flex: 0 0 44px !important;

  display: grid !important;
  place-items: center !important;

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

  padding: 0 !important;

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

  background: #f2f4f8 !important;

  color: #1b2d5b !important;

  font-size: 27px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.role-teacher
.ruyaTeacherAlbumPreviewV3
.ruyaTeacherAlbumPreviewDescription {
  margin:
    13px 20px 0 !important;

  color: #697388 !important;

  font-size: 13px !important;
  line-height: 1.5 !important;
}

.role-teacher .ruyaTeacherAlbumViewerV3 {
  padding:
    16px 20px 18px !important;
}

.role-teacher .ruyaTeacherAlbumStageV3 {
  position: relative !important;

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

  width: 100% !important;

  height:
    min(58dvh,590px) !important;

  min-height: 330px !important;

  overflow: hidden !important;

  border-radius: 17px !important;

  background: #f1f3f7 !important;
}

.role-teacher
.ruyaTeacherAlbumStageV3 > img,

.role-teacher
.ruyaTeacherAlbumStageV3 > video {
  display: block !important;

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

  object-fit: contain !important;

  background: #f1f3f7 !important;
}

.role-teacher .ruyaTeacherAlbumCounterV3 {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;

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

  min-width: 50px !important;
  height: 31px !important;

  padding: 0 10px !important;

  border-radius: 999px !important;

  background:
    rgba(18,32,70,.88) !important;

  color: #fff !important;

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

.role-teacher .ruyaTeacherAlbumArrowV3 {
  position: absolute !important;
  top: 50% !important;
  z-index: 4 !important;

  display: grid !important;
  place-items: center !important;

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

  padding: 0 !important;

  transform:
    translateY(-50%) !important;

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

  background:
    rgba(255,255,255,.92) !important;

  color: #182955 !important;

  font-size: 30px !important;
  line-height: 1 !important;

  box-shadow:
    0 5px 17px
    rgba(17,30,65,.15) !important;
}

.role-teacher .ruyaTeacherAlbumArrowPrevV3 {
  left: 10px !important;
}

.role-teacher .ruyaTeacherAlbumArrowNextV3 {
  right: 10px !important;
}

.role-teacher .ruyaTeacherAlbumThumbsV3 {
  display: flex !important;
  gap: 8px !important;

  margin-top: 11px !important;

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

  scrollbar-width: none !important;

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

.role-teacher
.ruyaTeacherAlbumThumbsV3::-webkit-scrollbar {
  display: none !important;
}

.role-teacher
.ruyaTeacherAlbumThumbsV3 > button {
  position: relative !important;

  flex: 0 0 66px !important;

  width: 66px !important;
  height: 66px !important;

  overflow: hidden !important;

  padding: 0 !important;

  border:
    2px solid transparent !important;

  border-radius: 11px !important;

  background: #edf1f6 !important;

  opacity: .64 !important;
}

.role-teacher
.ruyaTeacherAlbumThumbsV3 > button.active {
  border-color:
    #233f91 !important;

  opacity: 1 !important;
}

.role-teacher
.ruyaTeacherAlbumThumbsV3 img,

.role-teacher
.ruyaTeacherAlbumThumbsV3 video {
  display: block !important;

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

  object-fit: cover !important;
}

.role-teacher
.ruyaTeacherAlbumThumbsV3 span {
  position: absolute !important;
  inset: 0 !important;

  display: grid !important;
  place-items: center !important;

  background:
    rgba(12,25,56,.25) !important;

  color: #fff !important;
}


/* ======================================================
   MOBILE
   ====================================================== */

@media(max-width:760px) {

  .role-teacher
  .ruyaTeacherAlbumPreviewBackV3 {
    padding: 8px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumPreviewV3 {
    width:
      calc(100vw - 16px) !important;

    max-height: 92dvh !important;

    border-radius: 21px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumPreviewHeadV3 {
    padding:
      16px 16px 14px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumPreviewHeadingV3 h3 {
    font-size: 20px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumViewerV3 {
    padding:
      12px 12px 14px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumStageV3 {
    height: 55dvh !important;
    min-height: 315px !important;

    border-radius: 15px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumArrowV3 {
    width: 38px !important;
    height: 38px !important;

    font-size: 27px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumArrowPrevV3 {
    left: 8px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumArrowNextV3 {
    right: 8px !important;
  }

  .role-teacher
  .ruyaTeacherAlbumThumbsV3 > button {
    flex-basis: 58px !important;

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

  .role-teacher
  .ruyaTeacherGalleryCard
  .ruyaAdminGalleryMenu {
    width: 142px !important;
    min-width: 142px !important;
  }
}
