.daily-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
a:hover,
a img:hover {
  opacity: 1!important;
}
.daily-modal.is-visible {
  display: flex;
}

.daily-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.daily-modal__dialog {
  position: relative;
  width: min(97vw, 900px);
  transform: scale(1);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1;
}

.daily-modal.is-closing .daily-modal__dialog {
  transform: scale(0.85);
  opacity: 0;
}

.daily-modal__link,
.daily-modal__image {
  display: block;
  width: 100%;
}

.daily-modal__image {
  height: auto;
}

.daily-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .daily-modal__close {
    top: -10px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}
