/* ========================================
   MAGNIFIC POPUP - ELASTIC HORIZON THEME
   Beautiful gallery with red theme & patterns
   ======================================== */

/* ========================================
   OVERLAY - Dark with subtle pattern
   ======================================== */
.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
    opacity: 0;
}

/* Subtle shimmer overlay on background */
.mfp-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        to bottom right,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 100%
    );
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(10%, 10%);
        opacity: 0.5;
    }
}

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1043;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

.mfp-container:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
    width: 100%;
    cursor: auto;
}

.mfp-ajax-cur {
    cursor: progress;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: -moz-zoom-out;
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
}

.mfp-zoom {
    cursor: pointer;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
    cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    color: #dd3333;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 1044;
    font-family: 'Playfair Display', serif;
}

.mfp-preloader a {
    color: #dd3333;
}

.mfp-preloader a:hover {
    color: #ff4444;
}

.mfp-s-ready .mfp-preloader {
    display: none;
}

.mfp-s-error .mfp-content {
    display: none;
}

button.mfp-close,
button.mfp-arrow {
    overflow: visible;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    display: block;
    outline: none;
    padding: 0;
    z-index: 1046;
    box-shadow: none;
    touch-action: manipulation;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

/* ========================================
   CLOSE BUTTON - Red theme with ~
   ======================================== */
.mfp-close {
    width: 50px;
    height: 50px;
    line-height: 50px;
    position: absolute;
    right: 8px;
    top: 8px;
    text-decoration: none;
    text-align: center;
    opacity: 0.9;
    padding: 0;
    color: #ffffff;
    font-style: normal;
    font-size: 36px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    background: rgba(221, 51, 51, 0.8);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(221, 51, 51, 0.4);
}

.mfp-close:hover,
.mfp-close:focus {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
    background: rgba(221, 51, 51, 1);
    box-shadow: 0 6px 25px rgba(221, 51, 51, 0.6);
}

.mfp-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    color: #ffffff;
}

/* ========================================
   NAVIGATION ARROWS - Hidden (removed)
   ======================================== */
.mfp-arrow {
    display: none !important;
}

/* ========================================
   TOP BAR - Removed per user request
   ======================================== */

/* ========================================
   BOTTOM BAR - Aligned and styled
   ======================================== */
.mfp-bottom-bar {
    margin-top: -60px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
    background: linear-gradient(to right, rgba(221, 51, 51, 0.9) 0%, rgba(221, 51, 51, 0.85) 100%);
    backdrop-filter: blur(10px);
    padding: 18px 24px;
    box-sizing: border-box;
    box-shadow: 0 -4px 20px rgba(221, 51, 51, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

/* Pattern overlay on bottom bar */
.mfp-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.03) 20px, rgba(255, 255, 255, 0.03) 40px);
    pointer-events: none;
}

/* ========================================
   TITLE - Left aligned with ~ symbol
   ======================================== */
.mfp-title {
    text-align: left;
    line-height: 24px;
    color: #ffffff;
    word-wrap: break-word;
    padding: 0;
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Remove ~ symbol before title */
.mfp-title::before {
    content: '';
    display: none;
}

/* ========================================
   COUNTER - Right aligned
   ======================================== */
.mfp-counter {
    position: static;
    color: #ffffff;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0 0 0 24px;
    background: transparent;
    border-radius: 0;
    z-index: 1;
    position: relative;
}

/* Remove ~ symbol after counter */
.mfp-counter::after {
    content: '';
    display: none;
}

/* ========================================
   IMAGE HOLDER
   ======================================== */
img.mfp-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    box-sizing: border-box;
    padding: 60px 0 60px;
    margin: 0 auto;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 30px 80px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.mfp-figure {
    line-height: 0;
}

.mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 60px;
    bottom: 60px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.12);
    background: transparent;
}

.mfp-figure small {
    color: #BDBDBD;
    display: block;
    font-size: 12px;
    line-height: 14px;
}

.mfp-figure figure {
    margin: 0;
}

.mfp-image-holder .mfp-content {
    max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: pointer;
}

/* ========================================
   IFRAME HOLDER
   ======================================== */
.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px;
}

.mfp-iframe-holder .mfp-close {
    top: -40px;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
}

.mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px rgba(221, 51, 51, 0.4);
    background: #000;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media screen and (max-width: 800px) and (orientation: landscape),
screen and (max-height: 300px) {
    .mfp-img-mobile .mfp-image-holder {
        padding-left: 0;
        padding-right: 0;
    }
    .mfp-img-mobile img.mfp-img {
        padding: 0;
    }
    .mfp-img-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }
    .mfp-img-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }
    .mfp-img-mobile .mfp-bottom-bar {
        bottom: 0;
        margin: 0;
        top: auto;
        padding: 12px 16px;
        position: fixed;
        box-sizing: border-box;
        min-height: 48px;
    }
    .mfp-img-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }
    .mfp-img-mobile .mfp-title {
        font-size: 14px;
    }
    .mfp-img-mobile .mfp-counter {
        font-size: 13px;
        padding-left: 12px;
    }
    .mfp-img-mobile .mfp-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 28px;
    }
}

@media all and (max-width: 900px) {
    .mfp-arrow {
        -webkit-transform: scale(0.85);
        transform: scale(0.85);
    }
    .mfp-arrow-left {
        -webkit-transform-origin: 0;
        transform-origin: 0;
    }
    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
        transform-origin: 100%;
    }
    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }
    .mfp-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .mfp-counter {
        padding-left: 0;
    }
}

/* ========================================
   FADE ANIMATION - Delightful entrance
   ======================================== */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.95;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0.9) translateY(30px);
}

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

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
    opacity: 0;
    transition: all 0.25s ease-in;
    transform: scale(0.9) translateY(30px);
}

/* ========================================
   IE7 SUPPORT (Legacy)
   ======================================== */
.mfp-ie7 .mfp-img {
    padding: 0;
}

.mfp-ie7 .mfp-bottom-bar {
    width: 600px;
    left: 50%;
    margin-left: -300px;
    margin-top: 5px;
    padding-bottom: 5px;
}

.mfp-ie7 .mfp-container {
    padding: 0;
}

.mfp-ie7 .mfp-content {
    padding-top: 44px;
}

.mfp-ie7 .mfp-close {
    top: 0;
    right: 0;
    padding-top: 0;
}
