.yayrev-review__media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px 0;
}

/** Media Card */
.yayrev-media-card {
  cursor: pointer;
  outline: 0.5px solid transparent;
  aspect-ratio: 1/1;
}

.yayrev-media-card.active .yayrev-media-card-wrapper {
  border-color: #000;
  outline-color: #000;
}

.yayrev-media-card-wrapper {
  position: relative;
  border-radius: 8px;
  border: 1px solid #d4dbe2;
  padding: 4px;
  transition: all 0.2s;
  aspect-ratio: 1/1;
  outline: 0.5px solid transparent;
}

.yayrev-media-card:hover .yayrev-media-card-wrapper {
  border-color: #757575;
}

.yayrev-media-card-inner {
  border-radius: 5px;
  background-color: #f5f5f5;
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.yayrev-media-card-inner img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  border-radius: 5px;
}

.yayrev-media-card__video-details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #404040cc;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.yayrev-media-card__video-details:empty {
  display: none;
}
.yayrev-media-card__video-details > * {
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yayrev-media-card__video-details > :last-child {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.yayrev-review__media-item {
  width: 150px;
  height: 150px;
}

/** Review Details */
.yayrev-review-details-modal {
  display: none;
  position: fixed;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  height: 80%;
  width: 60%;
  margin: auto;
  z-index: 160000;
}

.yayrev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #e4e4e7;
}

.yayrev-modal-header h1 {
  padding: 0;
  font-size: 22px;
  line-height: 2.27272727;
  margin: 0;
  font-weight: 600;
}

.yayrev-review-details__medias-title {
  color: #18181b;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.yayrev-modal-see-all-media:hover {
  cursor: pointer;
  text-decoration: underline;
}

.yayrev-review-details__media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(80px), 1fr));
  gap: 10px;
}

.yayrev-all-media-dialog {
  display: none;
  position: fixed;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  width: 80%;
  height: 80%;
  margin: auto;
  z-index: 160000;
}

.yayrev-modal-backdrop,
.yayrev-all-media-dialog-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 360px;
  background: #000;
  opacity: 0.7;
  z-index: 159900;
}

.yayrev-modal-content,
.yayrev-all-media-dialog-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  background: #fff;
  border-radius: 8px;
  -webkit-font-smoothing: subpixel-antialiased;
  z-index: 160001;
}

.yayrev-all-media-dialog-content-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.yayrev-all-media-dialog-content-wrapper
  .yayrev-modal-comment-medias-preview-item {
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yayrev-modal-comment-details {
  display: block;
  height: 100%;
  width: 100%;
}

.yayrev-modal-media-frame-content {
  border-bottom: none;
  position: absolute;
  bottom: 0;
  top: 50px;
  left: 0;
  right: 0;
  height: auto;
  width: auto;
  margin: 0;
  overflow: auto;
  background: #fff;
  border-top: 1px solid #dcdcde;
  z-index: 1000000;
}
.yayrev-modal-media-frame-content .thumbnail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background-color: #f6f7f7;
  position: relative;
}

.yayrev-modal-media-frame-content .thumbnail-image video {
  max-width: 100%;
  height: auto;
}

.yayrev-modal-media-frame-content-left {
  position: relative;
  float: left;
  width: 65%;
  height: 100%;
  background-color: #f6f7f7;
  user-select: none;
}

.yayrev-modal-media-frame-content-left .thumbnail {
  box-sizing: border-box;
  padding: 16px;
  height: 100%;
}

.yayrev-modal-media-frame-content-left .thumbnail img {
  display: block;
  margin: 0 auto 16px;
  max-width: 100%;
  max-height: 90%;
  max-height: calc(100% - 42px);
}

.yayrev-modal-media-frame-content-right {
  overflow: auto;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 12px 16px 0;
  width: 35%;
  height: 100%;
}

.yayrev-modal-media-frame-content-right .comment-details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-author-avatar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-author-avatar
  .comment-avatar {
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 100%;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-author-avatar
  .comment-avatar
  img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-author-avatar
  .comment-author {
  color: #09090b;
  font-size: 14px;
  font-weight: 400;
}

.yayrev-modal-comment-rating .star-rating {
  float: left !important;
  font-size: 16px !important;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-date {
  color: #64748b;
  font-size: 14px;
}

.yayrev-modal-media-frame-content-right
  .comment-details-wrapper
  .comment-content {
  color: #0f172a;
  font-size: 14px;
}

/* Navigation Arrows */
.yayrev-nav-arrow {
  cursor: pointer;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  box-shadow: 0px 10px 25px 0px #377e620d;
  transition: all 0.2s ease-in-out;
  position: absolute;
  top: 50%;
  z-index: 10;
  background: #fff;
  color: #808890;
  border-radius: 100%;
  padding: 0.25rem;
}

.yayrev-nav-arrow:hover {
  background: #eff2f4;
  box-shadow: 0px 10px 25px 0px #12294026;
  border: none;
  color: #000;
}

.yayrev-nav-prev {
  left: 1rem;
}

.yayrev-nav-next {
  right: 1rem;
}

.yayrev-nav-arrow svg path {
  stroke: #808890;
  fill: transparent;
  transition: all 0.2s ease-in-out;
}

.yayrev-nav-arrow:hover svg path {
  stroke: #122940;
  fill: transparent;
}

.yayrev-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Show arrows when there are multiple media items */
.yayrev-modal-media-frame-content-left:has(.yayrev-nav-arrow)
  .yayrev-nav-arrow {
  opacity: 0;
  transition: all 0.2s ease-in-out;
}

.yayrev-modal-media-frame-content-left:hover .yayrev-nav-arrow {
  opacity: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .yayrev-nav-arrow {
    width: 24px;
    height: 24px;
    left: 8px;
    right: 8px;
  }

  .yayrev-nav-prev {
    left: 8px;
  }

  .yayrev-nav-next {
    right: 8px;
  }
}
