/* ==============================================*/
/* ============ ArtMuz-Lightbox-Stil ========== */
/* ==============================================*/

.mfp-bg {
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.mfp-ready .mfp-bg { opacity: 1; }

.lightbox-content {
  background: #fff;
  color: #222;
  padding: 40px 35px;
  border-radius: 12px;
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: scale(0.95) translateY(40px);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.mfp-ready .lightbox-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.mfp-removing .lightbox-content {
  transform: scale(0.97) translateY(30px);
  opacity: 0;
}

.lightbox-content h3, .lightbox-content h2 {
  font-family: 'Expletus Sants', sans-serif !important;
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 15px;
  text-align: center;
}

.lightbox-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.lightbox-content .dt-btn:hover,
.lightbox-content button:hover {
  background: #99999923;
}

@media (max-width: 600px) {
  .lightbox-content {
    max-width: 90%;
    padding: 25px 20px;
	margin-bottom: 5px;
  }
  .lightbox-content h3 { font-size: 18px; }
}

/* --------- Konto-Iframe-Lightbox ---------- */

.am-iframe-lightbox .mfp-container {
    padding: 24px 12px;
}

.am-iframe-lightbox .mfp-content {
    width: min(620px, 94vw);
    max-width: 620px;
    height: min(760px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.am-iframe-lightbox .mfp-iframe-scaler {
    width: 100%;
    height: 100%;
    padding-top: 0 !important;
    overflow: hidden;
}

.am-iframe-lightbox .mfp-iframe {
    width: 100%;
    height: 100%;
    background: #fff;
}

@media (max-width: 768px) {
    .am-iframe-lightbox .mfp-container {
        padding: 14px 24px;
    }

    .am-iframe-lightbox .mfp-content {
        width: 94vw;
        height: calc(100dvh - 28px);
        max-height: calc(100dvh - 28px);
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .am-iframe-lightbox .mfp-content {
        width: 96vw;
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
    }
}

/* Iframe popup: simple close button */
.am-iframe-lightbox .mfp-close {
    position: absolute !important;
    top: 1px !important;
    right: 1px !important;

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

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

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

    background: transparent !important;
    border-radius: 6px !important;

    color: #777 !important;
    opacity: 1 !important;

    font-size: 0 !important;
    text-align: center !important;

    cursor: pointer !important;
    z-index: 99999 !important;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.am-iframe-lightbox .mfp-close::before {
    content: "×";
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    color: inherit;
}

.am-iframe-lightbox .mfp-close:hover {
    background: rgba(0, 0, 0, 0.10) !important;
    color: #333 !important;
}

/* Einheitliche Rundung für iframe popup */
.am-iframe-lightbox .mfp-content,
.am-iframe-lightbox .mfp-iframe-scaler {
    border-radius: 12px !important;
    overflow: hidden !important;
}

/* Hintergrund des iframe popup */
.am-iframe-lightbox .mfp-iframe-scaler {
    background: #fff !important;
}

/* Iframe popup loading spinner */
.am-iframe-lightbox .mfp-iframe-scaler {
    position: relative;
    background: #fff;
}

.am-iframe-lightbox .mfp-iframe-scaler.am-iframe-is-loading .mfp-iframe {
    opacity: 0;
}

.am-iframe-lightbox .mfp-iframe-scaler.am-iframe-is-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;

    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: #777;
    border-radius: 50%;

    animation: am-iframe-spin 0.8s linear infinite;

    z-index: 10;
    pointer-events: none;
}

.am-iframe-lightbox .mfp-iframe-scaler.am-iframe-is-loading::after {
    content: "Завантажується...";
    position: absolute;
    top: calc(50% + 42px);
    left: 50%;
    transform: translateX(-50%);

    font-size: 15px;
    color: #555;
    text-align: center;

    z-index: 10;
    pointer-events: none;
}

html[lang^="ru"] .am-iframe-lightbox .mfp-iframe-scaler.am-iframe-is-loading::after {
    content: "Загружается...";
}

@keyframes am-iframe-spin {
    to {
        transform: rotate(360deg);
    }
}
  
/* ==============================================*/
/* Zurück + Weiter - ArtMuz-Lightbox */
/* ==============================================*/

.mfp-arrow {
  opacity: 1 !important;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  transition: 0.3s ease;
}

.mfp-arrow:hover {
  background: rgba(255,255,255,0.55);
}

.mfp-arrow:before,
.mfp-arrow:after {
  color: #fff;
  font-size: 28px;
}

.mfp-arrow-left:before {
  content: '←';
  margin-right: 4px;
}

.mfp-arrow-right:before {
  content: '→';
  margin-left: 4px;
}

/* Bildtext */
.mfp-alt, .mfp-title, .mfp-caption, .mfp-description {
  text-align: center;
  color: #fff;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
}

.mfp-title {
  font-size: 18px;
  font-weight: 600;
}

.mfp-caption {
  opacity: 0.9;
}

.mfp-description {
  opacity: 0.8;
  font-size: 15px;
}
