.login-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
    background: radial-gradient(circle at top left, rgba(29,78,216,0.12), transparent 45%), #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-hero {
    position: relative;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,64,175,0.92)), url('../img/login-bg.jpg') center/cover no-repeat;
    color: #f8fafc;
    overflow: hidden;
}

.login-hero::after {
    content: '';
    position: absolute;
    inset: 40% -20% -20%;
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
    opacity: 0.6;
}

.hero-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden; /* impede a imagem de ultrapassar o contorno */
}

.brand-symbol img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* preenche mantendo proporção */
}


.brand-name {
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 3vw, 2rem);
}

.hero-nav a {
    color: rgba(226,232,240,0.86);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
    color: #ffffff;
}

.hero-nav .cta-link {
    background: rgba(226,232,240,0.15);
    border: 1px solid rgba(148,163,184,0.35);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    color: #f8fafc;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 5vw, 3.5rem);
    margin-top: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-copy .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(37,99,235,0.2);
    border: 1px solid rgba(191,219,254,0.35);
    color: #bfdbfe;
}

.hero-copy h1 {
    margin: 1.5rem 0 1rem;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
}

.hero-copy p {
    color: rgba(226,232,240,0.85);
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #f8fafc;
    box-shadow: 0 15px 30px -12px rgba(37,99,235,0.6);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -12px rgba(37,99,235,0.75);
    color: #ffffff;
}

.btn-arcade {
    background: linear-gradient(135deg, #14b8a6, #7c3aed);
    color: #f8fafc;
    border: 1px solid rgba(14,165,233,0.4);
    box-shadow: 0 14px 28px -16px rgba(124,58,237,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-arcade:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -18px rgba(124,58,237,0.65);
    color: #fef08a;
}

.btn-secondary {
    color: #e2e8f0;
    border: 1px solid rgba(148,163,184,0.4);
}

.stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
}

.stat span {
    font-size: 0.9rem;
    color: rgba(226,232,240,0.75);
}

.hero-media {
    display: grid;
    gap: 1.5rem;
}

.media-card {
    backdrop-filter: blur(6px);
    background: rgba(15,23,42,0.55);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.media-card.secondary {
    margin-left: clamp(0rem, 4vw, 2.5rem);
}

.media-card img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    background: rgba(15,23,42,0.6);
}

.media-caption {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.45);
    color: rgba(226,232,240,0.85);
}

.media-caption p {
    margin: 0;
    color: rgba(226,232,240,0.78);
    line-height: 1.5;
}

.section-light,
.section-dark {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
}

.section-light {
    background: #f8fafc;
}

.section-dark {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
}

.section-wrapper {
    max-width: 1080px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: rgba(51,65,85,0.9);
}

.section-dark .section-header p {
    color: rgba(226,232,240,0.8);
}

.section-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 20px 45px -25px rgba(15,23,42,0.25);
    border: 1px solid rgba(15,23,42,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.35rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #0f172a;
}

.feature-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.team-profiles {
    display: grid;
    gap: clamp(1.75rem, 5vw, 2.75rem);
}

.team-profile-detail {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);
    position: relative;
    overflow: hidden;
}

.team-profile-detail.is-changing {
    animation: teamProfileSwap 0.35s ease;
}

.team-profile-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-profile-photo img {
    width: clamp(140px, 18vw, 190px);
    height: clamp(140px, 18vw, 190px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(59, 130, 246, 0.25);
    box-shadow: 0 18px 35px -25px rgba(37, 99, 235, 0.6);
}

.team-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-profile-info h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: #0f172a;
}

.team-profile-role {
    margin: 0 0 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1d4ed8;
    font-size: 0.82rem;
}

.team-profile-bio {
    margin: 0;
    color: #475569;
    line-height: 1.65;
    font-size: 0.97rem;
}

.team-profile-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.team-profile-thumb {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.team-profile-thumb:hover,
.team-profile-thumb:focus-visible {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 12px 24px -16px rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.12);
    outline: none;
}

.team-profile-thumb.is-active {
    border-color: rgba(37, 99, 235, 0.6);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 16px 35px -24px rgba(37, 99, 235, 0.55);
}

.team-profile-thumb-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

.team-profile-thumb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-profile-thumb-name {
    white-space: nowrap;
}

@keyframes teamProfileSwap {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .team-profile-detail {
        grid-template-columns: minmax(140px, 200px) 1fr;
    }
}

@media (max-width: 768px) {
    .team-profile-detail {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-profile-info {
        align-items: center;
    }

    .team-profile-thumbs {
        justify-content: center;
    }

    .team-profile-thumb {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

.section-dark .highlights {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.highlight {
    background: rgba(30,41,59,0.6);
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 18px;
    padding: 1.75rem;
    backdrop-filter: blur(4px);
}

.highlight h3 {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}

.highlight p {
    margin: 0;
    color: rgba(226,232,240,0.78);
    line-height: 1.6;
}

.cta-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
    background: radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 55%), #eef2ff;
}

.cta-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: clamp(2.5rem, 6vw, 3.75rem);
    box-shadow: 0 25px 50px -30px rgba(29,78,216,0.4);
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.cta-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    color: #0f172a;
}

.cta-copy p {
    color: #475569;
    line-height: 1.65;
}

.btn-large {
    padding: 0.95rem 1.8rem;
    font-size: 1.05rem;
}

.btn-large:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cta-footnote {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.gallery-section {
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
    background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(30,64,175,0.92));
    color: #f8fafc;
}

/* ====== GALERIA BASE ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(10px, 2vw, 20px);
  padding: clamp(0.8rem, 2vw, 1.5rem);
  justify-items: center;
  align-items: start;
}

.gallery-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gallery-grid-five .gallery-item {
  max-width: 100%;
}

.gallery-carousel .carousel-inner {
  position: relative;
  overflow: hidden;
  min-height: 1px;
}

.gallery-carousel .carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.gallery-carousel .carousel-item.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

/* ====== ITEM ====== */
.gallery-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
  max-width: 400px;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -25px rgba(15, 23, 42, 0.8);
}

/* ====== IMAGEM ====== */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
  border-radius: 16px 16px 0 0;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ====== VÍDEO ====== */
.gallery-video {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.gallery-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 16px 16px 0 0;
}

/* ====== AUTOR (LEGENDA) ====== */
.gallery-item figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.85);
  padding: 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* ====== RESPONSIVIDADE ====== */

/* === Monitores grandes (≥1400px) === */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }

  .gallery-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* === Notebooks / Tablets grandes (≥992px e <1400px) === */
@media (max-width: 1399px) and (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
  .gallery-grid-five {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === Tablets médios (≥768px e <992px) === */
@media (max-width: 991px) and (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
  .gallery-item figcaption {
    font-size: 0.8rem;
  }
  .gallery-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === Celulares grandes (≥480px e <768px) === */
@media (max-width: 767px) and (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .gallery-item {
    border-radius: 14px;
  }
  .gallery-item figcaption {
    font-size: 0.78rem;
    padding: 0.5rem;
  }
  .gallery-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* === Celulares pequenos (<480px) === */
@media (max-width: 479px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0.5rem;
  }
  .gallery-item {
    border-radius: 12px;
  }
  .gallery-item figcaption {
    font-size: 0.72rem;
    padding: 0.4rem;
  }
  .gallery-item img {
    aspect-ratio: 1 / 1;
  }
  .gallery-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.gallery-card {
    background: rgba(15,23,42,0.65);
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 18px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    box-shadow: 0 20px 40px -28px rgba(15,23,42,0.65);
}
.gallery-empty {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(226,232,240,0.7);
}

.gallery-footnote {
    font-size: 0.75rem;
    color: rgba(148,163,184,0.75);
    margin: 0;
}

.gallery-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    z-index: 1100;
}

.gallery-lightbox-backdrop.show {
    display: flex;
}

.gallery-lightbox-image {
    max-width: min(960px, 92vw);
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(8, 15, 35, 0.75);
    background: #0f172a;
}

.gallery-lightbox-close {
    position: absolute;
    top: clamp(18px, 5vw, 32px);
    right: clamp(18px, 5vw, 32px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(15,23,42,0.55);
    color: #f8fafc;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
    background: rgba(59,130,246,0.35);
    color: #ffffff;
}

.overflow-hidden {
    overflow: hidden !important;
}
.gallery-section .section-header p {
    color: rgba(226,232,240,0.8);
}

.alert-error {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #b91c1c;
    font-weight: 500;
}

.page-footer {
    margin-top: auto;
    padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #0f172a;
    color: rgba(226,232,240,0.8);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.92rem;
}

.footer-links a {
    color: rgba(226,232,240,0.85);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}



@media (max-width: 992px) {
    .gallery-flow {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-flow {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 960px) {
    .hero-nav {
        display: none;
    }
    .hero-content {
        grid-template-columns: 1fr;
    }
    .media-card,
    .media-card.secondary {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .hero-copy h1 {
        font-size: 2.1rem;
    }
    .stats-strip {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-card {
        padding: 2rem;
    }
}
.gallery-flow-media-video video {
    width: 100%;
    height: 100%;
    display: block;
}

body.overflow-hidden {
    overflow: hidden !important;
}


.gallery-slider {
    position: relative;
}

.gallery-carousel {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.28);
    box-shadow: 0 28px 60px -32px rgba(15,23,42,0.75);
    background: rgba(15,23,42,0.55);
}

.gallery-slide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(18px, 3vw, 26px);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.gallery-tile {
    display: flex;
    flex-direction: column;
    background: rgba(15,23,42,0.6);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 20px;
    overflow: hidden;
    min-height: 100%;
    box-shadow: 0 24px 56px -32px rgba(15,23,42,0.7);
}

.gallery-tile-media {
    position: relative;
    display: block;
    background: rgba(15,23,42,0.35);
}

.gallery-tile-media img,
.gallery-tile-media iframe,
.gallery-tile-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-tile-media.is-image {
    cursor: zoom-in;
}

.gallery-tile-media.is-image img {
    transition: transform 0.25s ease;
}

.gallery-tile-media.is-image:hover img,
.gallery-tile-media.is-image:focus-visible img {
    transform: scale(1.04);
}

.gallery-tile-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15,23,42,0.82);
    color: #f8fafc;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-tile-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.5) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.gallery-tile-media.is-image:hover .gallery-tile-hover,
.gallery-tile-media.is-image:focus-visible .gallery-tile-hover {
    opacity: 1;
}

.gallery-tile-media-video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.gallery-tile-media-video video {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-tile-meta {
    padding: clamp(1rem, 2.5vw, 1.4rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    color: rgba(226,232,240,0.86);
}

.gallery-tile-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: #f8fafc;
}

.gallery-tile-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(226,232,240,0.72);
}

.gallery-tile-info i {
    opacity: 0.85;
}

.gallery-tile-note {
    margin: 0;
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(148,163,184,0.82);
}

.gallery-tile-description {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(226,232,240,0.84);
}

.gallery-tile-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
}

.gallery-carousel-control {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(15,23,42,0.65);
    border: 1px solid rgba(148,163,184,0.35);
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
}

.gallery-carousel-control:hover,
.gallery-carousel-control:focus-visible {
    background: rgba(59,130,246,0.35);
    color: #ffffff;
}

.gallery-carousel-control i {
    font-size: 1.6rem;
    line-height: 1;
}

 .gallery-flow-empty {
    background: rgba(15,23,42,0.55);
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 22px;
    padding: 2rem;
    text-align: center;
    color: rgba(226,232,240,0.82);
}

@media (max-width: 992px) {
    .gallery-slide-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-slide-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .gallery-carousel {
        border-radius: 16px;
    }
}

body.overflow-hidden {
    overflow: hidden !important;
}

