/**
 * MSA Gallery Styles
 *
 * @package MSA_Gallery
 * @since   1.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    --msa-orange: #ff9933;
    --msa-orange-dark: #e68a2e;
    --msa-purple: #9933ff;
    --msa-dark: #1a1a2e;
    --msa-gallery-columns: 3;
    --msa-gallery-gap: 12px;
    --msa-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Single Gallery Page
   ========================================================================== */

.msa-gallery-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 1.5rem 2rem;
}

.msa-gallery-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.msa-gallery-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--msa-ink, #0f172a);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}

.msa-gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(17, 19, 21, 0.6);
}

.msa-gallery-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Typ-Badge — Pillen-Form wie .entry-kicker auf Blog-Seiten */
.msa-gallery-type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(160, 32, 240, 0.08);
    color: var(--msa-accent, #a020f0);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.msa-gallery-type:hover {
    background: rgba(160, 32, 240, 0.15);
    text-decoration: none;
}

/* Typ-Farben für Meta-Tags entfernen — einheitlich Lila-Pille */
.msa-gallery-type-show,
.msa-gallery-type-workshop,
.msa-gallery-type-unterricht,
.msa-gallery-type-backstage,
.msa-gallery-type-auffuehrungen,
.msa-gallery-type-workshops {
    background: rgba(160, 32, 240, 0.08);
    color: var(--msa-accent, #a020f0);
}

.msa-gallery-meta .msa-gallery-count {
    color: var(--msa-orange, #ff9933);
    font-weight: 600;
}

.msa-gallery-excerpt {
    margin-top: 1rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.msa-gallery-event-link {
    margin-top: 1rem;
}

.msa-gallery-event-link a {
    color: var(--msa-orange, #ff9933);
    text-decoration: none;
    font-weight: 500;
    transition: var(--msa-transition);
}

.msa-gallery-event-link a:hover {
    color: var(--msa-orange-dark, #e68a2e);
}

.msa-gallery-blog-link {
    margin-top: 0.75rem;
}

.msa-gallery-blog-link a {
    color: #9933ff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--msa-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.msa-gallery-blog-link a:hover {
    color: #7700dd;
    text-decoration: underline;
}

.msa-gallery-admin-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.msa-gallery-admin-notice p {
    margin: 0;
}

.msa-gallery-content:empty {
    display: none;
}

.msa-gallery-footer {
    margin-top: 2rem;
}

.msa-gallery-visibility-notice {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .msa-gallery-single {
        padding: 90px 1rem 1rem;
    }

    .msa-gallery-title {
        font-size: 1.8rem;
    }

    .msa-gallery-meta {
        gap: 0.4rem;
    }
}

/* ==========================================================================
   Gallery Container
   ========================================================================== */

.msa-gallery-container {
    margin: 2rem 0;
}

.msa-gallery-container.msa-gallery-protected img {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: none;
}

.msa-gallery-container.msa-gallery-protected .msa-gallery-item {
    position: relative;
}

.msa-gallery-container.msa-gallery-protected .msa-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: auto;
}

/* ==========================================================================
   Toolbar
   ========================================================================== */

.msa-gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
}

.msa-gallery-toolbar .msa-gallery-count {
    font-weight: 600;
    color: var(--msa-dark);
}

.msa-gallery-layout-toggle {
    display: flex;
    gap: 4px;
}

.msa-layout-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--msa-transition);
}

.msa-layout-btn:hover {
    border-color: var(--msa-orange);
}

.msa-layout-btn.active {
    border-color: var(--msa-orange);
    background: var(--msa-orange);
    color: white;
}

/* ==========================================================================
   Gallery Grid - Standard
   ========================================================================== */

.msa-gallery-grid,
.msa-gallery-masonry {
    gap: var(--msa-gallery-gap);
}

.msa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--msa-gallery-columns), 1fr);
}

/* ==========================================================================
   Gallery Grid - Masonry
   ========================================================================== */

.msa-gallery-masonry {
    columns: var(--msa-gallery-columns);
    column-gap: var(--msa-gallery-gap);
}

.msa-gallery-masonry .msa-gallery-item {
    break-inside: avoid;
    margin-bottom: var(--msa-gallery-gap);
}

/* ==========================================================================
   Gallery Items
   ========================================================================== */

.msa-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    text-decoration: none;
    cursor: pointer;
    transition: var(--msa-transition);
}

.msa-gallery-grid .msa-gallery-item {
    aspect-ratio: 4/3;
}

.msa-gallery-masonry .msa-gallery-item {
    aspect-ratio: auto;
}

.msa-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.msa-gallery-item:focus {
    outline: 3px solid var(--msa-orange);
    outline-offset: 2px;
}

.msa-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

/* Lazy loading blur effect */
.msa-lazy-blur {
    filter: blur(10px);
    transform: scale(1.1);
}

.msa-lazy-blur.msa-lazy-loaded {
    filter: blur(0);
    transform: scale(1);
}

.msa-gallery-grid .msa-gallery-image {
    position: absolute;
    inset: 0;
}

.msa-gallery-item:hover .msa-gallery-image {
    transform: scale(1.05);
}

/* ==========================================================================
   Highlight Badge
   ========================================================================== */

.msa-highlight-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--msa-orange);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(255, 153, 51, 0.4);
    z-index: 2;
}

.msa-gallery-highlight {
    box-shadow: 0 0 0 3px var(--msa-orange);
}

/* ==========================================================================
   Caption Overlay
   ========================================================================== */

.msa-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform var(--msa-transition);
}

.msa-gallery-item:hover .msa-gallery-caption {
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Grid
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --msa-gallery-columns: 3;
    }
}

@media (max-width: 900px) {
    :root {
        --msa-gallery-columns: 2;
    }
}

@media (max-width: 600px) {
    :root {
        --msa-gallery-columns: 1;
        --msa-gallery-gap: 8px;
    }
    
    .msa-gallery-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ==========================================================================
   Teaser Card
   ========================================================================== */

.msa-gallery-teaser {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border-left: 4px solid var(--msa-orange);
    border-radius: 0 12px 12px 0;
}

.msa-gallery-teaser h3 {
    margin: 0 0 1rem;
    color: var(--msa-dark);
}

.msa-gallery-teaser-content {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.msa-gallery-teaser img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.msa-gallery-teaser-info {
    flex: 1;
}

.msa-gallery-count {
    font-weight: 600;
    color: var(--msa-orange);
}

.msa-gallery-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--msa-orange);
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--msa-transition);
}

.msa-gallery-button:hover {
    background: var(--msa-orange-dark);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .msa-gallery-teaser-content {
        flex-direction: column;
    }
    
    .msa-gallery-teaser img {
        width: 100%;
        height: 150px;
    }
}

/* ==========================================================================
   Share Modal
   ========================================================================== */

.msa-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.msa-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.msa-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.msa-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--msa-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.msa-modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.msa-modal-content h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--msa-dark);
}

/* ==========================================================================
   Share Preview
   ========================================================================== */

.msa-share-preview {
    margin-bottom: 1.5rem;
}

.msa-share-preview-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.msa-share-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.msa-share-preview-image[data-format="story"] {
    aspect-ratio: 9/16;
    max-height: 300px;
    margin: 0 auto;
    width: auto;
}

.msa-share-watermark-preview {
    position: absolute;
    width: 15%;
    height: auto;
    opacity: 0.8;
    pointer-events: none;
}

.msa-share-watermark-preview[data-position="top-left"] {
    top: 10px;
    left: 10px;
}

.msa-share-watermark-preview[data-position="top-right"] {
    top: 10px;
    right: 10px;
}

.msa-share-watermark-preview[data-position="bottom-left"] {
    bottom: 10px;
    left: 10px;
}

.msa-share-watermark-preview[data-position="bottom-right"] {
    bottom: 10px;
    right: 10px;
}

.msa-share-watermark-preview[data-position="bottom-center"] {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   Share Options
   ========================================================================== */

.msa-share-options {
    margin-bottom: 1.5rem;
}

.msa-share-format,
.msa-share-position {
    margin-bottom: 1rem;
}

.msa-share-options label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msa-format-buttons {
    display: flex;
    gap: 8px;
}

.msa-format-btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e0e0e0 !important;
    background: white !important;
    color: #333 !important;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--msa-transition);
}

.msa-format-btn:hover {
    border-color: var(--msa-orange) !important;
}

.msa-format-btn.active {
    border-color: var(--msa-orange) !important;
    background: var(--msa-orange) !important;
    color: white !important;
}

.msa-position-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.msa-position-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #e0e0e0 !important;
    background: white !important;
    color: #333 !important;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: var(--msa-transition);
}

.msa-position-btn:hover {
    border-color: var(--msa-orange) !important;
    transform: scale(1.1);
}

.msa-position-btn.active {
    border-color: var(--msa-orange) !important;
    background: #fff5eb !important;
    color: #333 !important;
}

/* ==========================================================================
   Share Buttons
   ========================================================================== */

.msa-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.msa-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 1rem 0.5rem;
    border: 2px solid #e0e0e0 !important;
    background: white !important;
    color: #333 !important;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--msa-transition);
}

.msa-share-btn i.bi {
    font-size: 1.5rem;
}

.msa-share-icon {
    width: 32px;
    height: 32px;
    line-height: 1;
    display: inline-block;
}

.msa-share-icon svg {
    width: 100%;
    height: 100%;
}

.msa-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.msa-share-instagram-feed:hover,
.msa-share-instagram-story:hover {
    border-color: #E4405F !important;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D) !important;
    color: white !important;
}

.msa-share-facebook:hover {
    border-color: #1877F2 !important;
    background: #1877F2 !important;
    color: white !important;
}

.msa-share-tiktok:hover {
    border-color: #000 !important;
    background: #000 !important;
    color: white !important;
}

/* ==========================================================================
   Share Loading
   ========================================================================== */

.msa-share-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.msa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--msa-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   GLightbox Customizations
   ========================================================================== */

.glightbox-clean .gslide-description {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
}

.glightbox-clean .gslide-title {
    color: white !important;
    font-weight: 600 !important;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(255, 153, 51, 0.8) !important;
    border-radius: 50% !important;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: var(--msa-orange) !important;
}

.glightbox-clean .gclose {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

.glightbox-clean .gclose:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Custom share button in lightbox */
.msa-lightbox-share {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    border: none;
    background: var(--msa-orange);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    transition: var(--msa-transition);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msa-lightbox-share:hover {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.5);
}

/* Pulse animation for highlights */
.msa-lightbox-share.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 153, 51, 0.7);
    }
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.msa-gallery-empty {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .msa-gallery-toolbar,
    .msa-modal,
    .msa-lightbox-share {
        display: none !important;
    }
}

/* ===================================================================
   Download Protection Styles
   =================================================================== */

/* Protection Notice */
.msa-protection-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff9933 0%, #ff6600 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
    z-index: 999999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.msa-protection-notice.show {
    opacity: 1;
    transform: translateY(0);
}

.msa-protection-notice p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.msa-protection-notice small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .msa-protection-notice {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 20px;
    }
    
    .msa-protection-notice p {
        font-size: 14px;
    }
}

/* Protection Overlays */
.msa-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.msa-lightbox-protection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Gallery Image Protection */
.msa-gallery-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.msa-gallery-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Lightbox Image Protection */
.glightbox-container img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Allow clicks on links but not images */
.msa-gallery-item > a {
    pointer-events: auto;
}

/* Invisible watermark layer (additional deterrent) */
.msa-gallery-item::after {
    content: '© Musicalschule Ahrensburg';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 10;
}

/* ==========================================================================
   Photographer Credit
   =================================================================== */

/* Hide chatbot on gallery lightbox to avoid overlap with share button */
.glightbox-open .msa-chatbot-widget,
.glightbox-open .msa-chatbot-trigger,
.glightbox-open [class*="chatbot"] {
    display: none !important;
}

.msa-gallery-credit {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    border-top: 2px solid #f0f0f0;
}

.msa-gallery-credit::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff9933, transparent);
    margin: 0 auto 15px;
}

@media (max-width: 768px) {
    .msa-gallery-credit {
        font-size: 13px;
        padding: 15px;
        margin-top: 20px;
    }
    
    /* Share-Button auf Mobile: Rechts unten in der Ecke */
    .msa-lightbox-share {
        bottom: 80px;
        left: auto;
        right: 20px;
        transform: none;
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .msa-lightbox-share:hover {
        transform: scale(1.1);
    }
}

/* ==========================================================================
   v1.6.0 — Single-Seite Erweiterungen
   ========================================================================== */

/* Saison-Badge (Taxonomie-Link) */
.msa-gallery-season-badge {
    background: #fff5e6;
    color: var(--msa-orange, #ff9933);
    border: 1px solid var(--msa-orange, #ff9933);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.msa-gallery-season-badge:hover {
    background: var(--msa-orange, #ff9933);
    color: #fff;
    text-decoration: none;
}

/* Hashtag-Zeile */
.msa-gallery-hashtag {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.msa-gallery-hashtag a {
    color: var(--msa-purple, #9933ff);
    font-weight: 600;
    text-decoration: none;
}
.msa-gallery-hashtag a:hover {
    text-decoration: underline;
}

/* YouTube Click-to-Load */
.msa-gallery-video-section {
    margin: 2rem 0;
}
.msa-gallery-video-heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--msa-dark, #1a1a2e);
}
.msa-gallery-video-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
}
.msa-gallery-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.msa-video-consent-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    text-align: center;
}
.msa-video-consent-text {
    font-size: 0.85rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0;
    line-height: 1.5;
}
.msa-video-consent-text a {
    color: var(--msa-orange, #ff9933);
}
.msa-video-consent-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: var(--msa-orange, #ff9933);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.msa-video-consent-btn:hover {
    background: var(--msa-orange-dark, #e68a2e);
}

/* Pressespiegel */
.msa-gallery-press-section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: #f8f9fb;
    border-left: 4px solid var(--msa-orange, #ff9933);
    border-radius: 0 12px 12px 0;
}
.msa-gallery-press-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--msa-dark, #1a1a2e);
}
.msa-gallery-press-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.msa-press-entry {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.msa-press-outlet {
    font-weight: 700;
    color: var(--msa-orange, #ff9933);
    white-space: nowrap;
}
.msa-press-headline {
    color: #444;
}
.msa-press-headline a {
    color: var(--msa-purple, #9933ff);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.msa-press-headline a:hover {
    text-decoration: underline;
}

/* Mobile: Lightbox image fills full screen width */
@media (max-width: 768px) {
    .glightbox-clean .gslide-image img,
    .glightbox-clean .ginner-container,
    .glightbox-clean .gslide-media {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .glightbox-clean .gslide-image img {
        height: auto !important;
        max-height: 100vh !important;
        object-fit: contain !important;
    }
}
