/* Global CSS - Header'dan taşınan stil dosyaları */

/* Quick Access Section Styles */
.quick-access-section {
    background: linear-gradient(135deg, rgba(42, 157, 148, 0.05) 0%, rgba(26, 140, 171, 0.1) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quick-access-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(42, 157, 148, 0.3) 0%, rgba(26, 140, 171, 0.1) 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 1;
}

.quick-access-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(26, 140, 171, 0.3) 0%, rgba(42, 157, 148, 0.1) 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 1;
}

.quick-access-section h2,
.quick-access-section .container h2 {
    position: relative;
    z-index: 2;
}

.quick-access-section .text-teal-600 {
    background: linear-gradient(90deg, #2A9D94, #1A8CAB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-access-section a {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.quick-access-section a:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.quick-access-section .grid {
    position: relative;
    z-index: 2;
}

.quick-access-section .bg-white {
    border-radius: 1rem;
    border: 1px solid rgba(42, 157, 148, 0.1);
}

.quick-access-section a:hover .bg-white {
    border-color: rgba(42, 157, 148, 0.3);
    background: rgba(42, 157, 148, 0.03);
}

.quick-access-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.quick-access-section p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Mobil menü paneli — liste görünümü style.css mobil blokta (#mobile-menu-dropdown) */
.mobile-menu-dropdown {
    box-sizing: border-box;
}

/* Mobile submenu styles */
.mobile-submenu {
    background: #f8fafc;
    padding-left: 1rem;
    display: none;
}

.mobile-submenu.show {
    display: block;
}

.mobile-submenu a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.mobile-submenu-toggle i {
    transition: transform 0.3s ease;
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.login-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.login-modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.login-modal-body {
    padding: 20px 30px 30px;
}

.login-modal-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.login-modal-buttons {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.login-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-btn {
    background: linear-gradient(135deg, #3EBDB4 0%, #0d9488 100%);
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62,189,180,0.3);
}

.register-btn {
    background: white;
    color: #3EBDB4;
    border-color: #3EBDB4;
}

.register-btn:hover {
    background: #3EBDB4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(62,189,180,0.2);
}

@media (max-width: 600px) {
    .login-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .login-modal-header,
    .login-modal-body {
        padding: 20px;
    }
    
    .login-modal-buttons {
        gap: 12px;
    }
    
    .login-modal-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Critical inline styles moved to external CSS */
.user-dropdown-menu {
    min-width: 220px;
    z-index: 9999;
    top: 100%;
}

.fake-player-badge-position {
    position: absolute;
    top: 24px;
    left: 20px;
    z-index: 2;
}

.fake-player-content-center {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fake-player-text-spacing {
    margin-top: 1.2rem;
}

.login-modal-hidden {
    display: none;
}

.contact-form-visible {
    display: block;
}

.form-submit-right {
    text-align: right;
}

.askbox-hidden {
    display: none;
}

.hero-title-no-margin {
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-meta-no-margin {
    margin-bottom: 0;
    padding-bottom: 0;
}

.upcoming-alert-no-margin {
    margin-top: 0;
    margin-bottom: 0;
}

.video-icon-large {
    font-size: 4rem;
    color: #64748b;
}

.info-icon-large {
    font-size: 2rem;
    color: #0284c7;
    margin-bottom: 1rem;
}

.iframe-borderless {
    border: 0;
}

.teal-gradient-bg {
    background-image: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #fff 100%);
}

/* Status badges */
.status-new {
    color: #e11d48;
    font-weight: 600;
}

.status-read {
    color: #0284c7;
}

.status-answered {
    color: #16a34a;
}

.status-unknown {
    color: #888;
}

.email-small {
    color: #888;
    font-size: 12px;
}

.dot-indicator {
    color: #e11d48;
    font-weight: 700;
}

/* Event info box styles */
.event-info-box {
    position: relative;
    background: unset;
    border-radius: 18px;
    padding: 20px 28px;
    box-shadow: none;
    overflow: hidden;
}

.event-info-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    box-shadow: 32px 0 48px -8px rgba(0,0,0,0.13);
    border-radius: 0 18px 18px 0;
    pointer-events: none;
    z-index: 1;
}

.event-info-desc {
    margin-top: 10px;
    color: #3a3a3a;
    font-size: 1.08rem;
    line-height: 1.6;
}

.live-join-btn {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.live-join-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(225,29,72,0.25) !important;
}

.fake-player-overlay-bg {
    background: rgba(0,0,0,0.08);
}

.recorded-player-overlay-bg {
    background: rgba(51, 65, 85, 0.92);
}

.recorded-player-hover-bg {
    background: rgba(15, 118, 110, 0.12);
    transition: background 0.2s;
}

/* Modern Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #2A9D94 0%, #1A8CAB 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,288L60,277.3C120,267,240,245,360,218.7C480,192,600,160,720,138.7C840,117,960,107,1080,128C1200,149,1320,203,1380,229.3L1440,256L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z"></path></svg>') no-repeat top center;
    background-size: cover;
    pointer-events: none;
}

.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #f8fafc;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.modern-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-footer ul li {
    margin-bottom: 0.75rem;
}

.modern-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.modern-footer-link:hover {
    color: white;
    transform: translateX(3px);
}

.modern-footer-link::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 8px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.modern-footer-link:hover::before {
    transform: translateY(-50%) scaleX(1);
}

/* Footer Quick Links - Admin panelinden gelen menü için */
.footer-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-quick-links li {
    margin-bottom: 0.75rem;
}

.footer-quick-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-quick-links a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-quick-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 8px;
    height: 2px;
    background: white;
    transition: transform 0.3s ease;
}

.footer-quick-links a:hover::before {
    transform: translateY(-50%) scaleX(1);
}

/* Footer Submenu Styles */
.footer-quick-links .has-submenu {
    margin-bottom: 1rem;
}

.footer-submenu {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    padding-left: 1.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-submenu-item {
    margin-bottom: 0.6rem;
}

.footer-submenu-link {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    opacity: 0.9;
}

.footer-submenu-link:hover {
    color: white !important;
    transform: translateX(3px);
    opacity: 1;
}

.footer-submenu-link::before {
    content: '→';
    position: absolute;
    left: -20px;
    top: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-submenu-link:hover::before {
    opacity: 1;
    left: -15px;
}

.modern-footer-contact {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.modern-footer-contact i {
    color: white;
    margin-right: 12px;
    margin-top: 2px;
    font-size: 1rem;
    width: 18px;
    flex-shrink: 0;
}

.modern-footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modern-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-footer-social a:hover {
    background: #3EBDB4;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(62, 189, 180, 0.3);
}

.modern-footer-social i {
    font-size: 1.1rem;
}

/* Twitter ikonu için özel kontrol */
.modern-footer-social .fa-twitter:before {
    content: "\f099" !important;
}

/* Alternatif olarak X ikonu da desteklensin */
.modern-footer-social .fa-x-twitter:before {
    content: "\e61b" !important;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #3EBDB4;
}

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2A9D94, #1A8CAB);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(42, 157, 148, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(42, 157, 148, 0.4);
}

/* İletişim bloğu: küçük ekranda markanın altında tam genişlik — üst boşluk + ayırıcı (md yan yana düzende gizlenir) */
@media (max-width: 767px) {
    .medwork-footer-col-contact {
        margin-top: 0.25rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 768px) {
    .modern-footer > .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .medwork-footer-brand .footer-brand-desc {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-width: none;
    }

    .modern-footer .footer-heading {
        font-size: 0.8125rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 0.5rem;
        opacity: 0.95;
    }

    .modern-footer .footer-heading::after {
        width: 1.75rem;
        height: 2px;
        bottom: -0.35rem;
    }

    /* İletişim: üst ayırıcı yalnızca tek sütun mobil (< md); başlık alt boşluğu genel heading’den sonra */
    .medwork-footer-col-contact .footer-heading {
        margin-bottom: 1rem;
    }

    .modern-footer ul li {
        margin-bottom: 0.35rem;
    }

    .modern-footer-link {
        font-size: 0.8125rem;
    }

    .modern-footer-social {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .modern-footer-social a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .modern-footer-contact {
        margin-bottom: 0.875rem;
        font-size: 0.875rem;
        line-height: 1.45;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .medwork-footer-col-contact .modern-footer-contact:last-child {
        margin-bottom: 0;
    }

    .modern-footer-contact i {
        margin-top: 0.15rem;
        font-size: 0.9rem;
        width: 1.125rem;
    }

    .medwork-footer-contact--address span {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.5;
    }

    /* Hızlı bağlantılar: yatay sarımlı chip’ler; alt menülü öğe tam satır */
    .medwork-footer-col-links ul.footer-quick-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem 0.45rem;
        align-items: flex-start;
    }

    .medwork-footer-col-links ul.footer-quick-links > li {
        margin-bottom: 0;
    }

    .medwork-footer-col-links ul.footer-quick-links > li.menu-item-has-children {
        flex: 1 1 100%;
        width: 100%;
    }

    .medwork-footer-col-links ul.footer-quick-links > li > a.modern-footer-link,
    .medwork-footer-col-links ul.footer-quick-links > li > a {
        display: inline-flex;
        align-items: center;
        padding: 0.35rem 0.65rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        white-space: nowrap;
        font-size: 0.75rem;
        transform: none !important;
        gap: 0.25rem;
    }

    .medwork-footer-col-links ul.footer-quick-links > li > a.modern-footer-link::before,
    .medwork-footer-col-links ul.footer-quick-links > li > a::before {
        display: none !important;
    }

    .medwork-footer-col-links ul.footer-quick-links > li.menu-item-has-children > a {
        white-space: normal;
    }

    .medwork-footer-col-links ul.footer-quick-links .footer-submenu {
        margin-top: 0.35rem;
        padding-left: 0.65rem;
        border-left: 2px solid rgba(255, 255, 255, 0.28);
        width: 100%;
        box-sizing: border-box;
    }

    .medwork-footer-col-links ul.footer-quick-links .footer-submenu li {
        margin-bottom: 0.25rem;
    }

    .medwork-footer-col-links ul.footer-quick-links .footer-submenu a {
        font-size: 0.72rem;
        padding: 0.2rem 0;
        white-space: normal;
        border-radius: 0;
        background: transparent;
        border: none;
        display: inline;
        transform: none !important;
    }

    .footer-quick-links a {
        transform: none !important;
    }

    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Top Bar Styles - Görünürlük ve Stil Düzeltmeleri */
.top-bar {
    background: linear-gradient(135deg, #2A9D94 0%, #1A8CAB 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: white;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar a:hover {
    color: white;
    transform: translateY(-1px);
}

.top-bar .language-selector {
    display: flex !important;
    align-items: center;
    gap: 0.125rem;
}

.top-bar .language-selector a {
    padding: 0.2rem 0.2rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.top-bar .language-selector a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.top-bar .language-selector .separator {
    color: rgba(255, 255, 255, 0.88);
}

/* Mobil görünümde top bar'ı gizleme */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
}

/* Desktop görünümde top bar'ı gösterme */
@media (min-width: 769px) {
    .top-bar {
        display: block !important;
    }
}

/* --------------------------------------------------------------------------
   Görsel lightbox (tüm site — main.js createLightbox; video modalına yakın)
   -------------------------------------------------------------------------- */

.medwork-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.35rem, 1.5vw, 1rem);
    box-sizing: border-box;
}

.medwork-image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.medwork-image-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 1920px);
    height: min(94vh, 1400px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(51, 65, 85, 0.65);
}

.medwork-image-lightbox__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem 0.65rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.medwork-image-lightbox__heading {
    margin: 0;
    font-size: clamp(0.8125rem, 2.2vw, 1.125rem);
    font-weight: 700;
    line-height: 1.35;
    color: #f1f5f9;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medwork-image-lightbox__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.medwork-image-lightbox__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: #2a9d94;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.medwork-image-lightbox__download:hover {
    background: #248f87;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.medwork-image-lightbox__download:active {
    transform: scale(0.98);
}

.medwork-image-lightbox__close {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #334155;
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.medwork-image-lightbox__close:hover {
    background: #475569;
    color: #fff;
}

.medwork-image-lightbox__body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.25rem, 1vw, 0.75rem);
    background: #020617;
}

.medwork-image-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

html.medwork-image-lightbox-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .medwork-image-lightbox__panel {
        width: 100%;
        height: min(92vh, 100%);
        max-height: 92vh;
        border-radius: 0.5rem;
    }

    .medwork-image-lightbox__header {
        padding: 0.5rem 0.65rem 0.5rem 0.85rem;
        flex-wrap: wrap;
    }

    .medwork-image-lightbox__heading {
        flex-basis: 100%;
        white-space: normal;
        line-height: 1.25;
        margin-bottom: 0.25rem;
    }

    .medwork-image-lightbox__actions {
        margin-left: auto;
    }
} 