/* ==========================================================================
   Gallery Section - Base Styles
   ========================================================================== */

.sslp-gallery {
    padding: 5rem 0;
    background: var(--sslp-bg-section, #0a0a0a);
    position: relative;
}

.sslp-gallery__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.sslp-gallery__header {
    text-align: center;
    margin-bottom: 3rem;
}

.sslp-gallery__badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(156, 168, 70, 0.15);
    border: 1px solid var(--sslp-accent, #9CA846);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sslp-accent, #9CA846);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.sslp-gallery__title-main {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--sslp-text, #fff);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.sslp-gallery .sslp-section__subtitle {
    font-size: 1.125rem;
    color: var(--sslp-text-muted, rgba(255,255,255,0.7));
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Gallery Item - FORÇANDO VISIBILIDADE
   ========================================================================== */

.sslp-gallery__item {
    position: relative;
    border-radius: 1rem;
    cursor: pointer;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s ease;
    overflow: visible !important;
}

.sslp-gallery__item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--sslp-accent, #9CA846);
}

/* Imagem */
.sslp-gallery__image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.sslp-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sslp-gallery__item:hover .sslp-gallery__image {
    transform: scale(1.08);
}

.sslp-gallery__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0D0D0D 0%, #141414 100%);
    color: rgba(255,255,255,0.3);
}

/* Overlay - só ícone de zoom */
.sslp-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 1rem 1rem 0 0;
}

.sslp-gallery__item:hover .sslp-gallery__overlay {
    opacity: 1;
}

.sslp-gallery__zoom {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--sslp-accent, #9CA846);
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.sslp-gallery__item:hover .sslp-gallery__zoom {
    transform: scale(1);
}

.sslp-gallery__zoom:hover {
    background: #fff;
}

/* ==========================================================================
   INFO - TÍTULO ABAIXO DA IMAGEM (FORÇADO)
   ========================================================================== */

.sslp-gallery__info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 1.25rem !important;
    background: rgba(18, 18, 18, 0.95) !important;
    border-radius: 0 0 1rem 1rem;
    min-height: 80px;
}

.sslp-gallery__category {
    display: inline-block !important;
    visibility: visible !important;
    padding: 0.3rem 0.75rem;
    background: var(--sslp-accent, #9CA846);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.sslp-gallery__item-title {
    display: block !important;
    visibility: visible !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box !important;
}

.sslp-gallery__description {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0.5rem 0 0 0;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.sslp-gallery__grid {
    display: grid;
    gap: 1.5rem;
}

.sslp-gallery__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.sslp-gallery__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.sslp-gallery__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Carousel Layout
   ========================================================================== */

.sslp-gallery--layout-carousel .sslp-gallery__carousel-wrapper {
    position: relative;
    padding: 0 3.5rem;
}

.sslp-gallery__carousel {
    overflow: hidden;
}

.sslp-gallery__carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sslp-gallery--layout-carousel .sslp-gallery__item {
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 300px;
}

.sslp-gallery__carousel-btn {
    position: absolute;
    top: 40%;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.sslp-gallery__carousel-btn:hover {
    background: var(--sslp-accent, #9CA846);
    color: #000;
}

.sslp-gallery__carousel-btn--prev { left: 0; }
.sslp-gallery__carousel-btn--next { right: 0; }

.sslp-gallery__carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.sslp-gallery__carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.sslp-gallery__carousel-dot.active,
.sslp-gallery__carousel-dot:hover {
    background: var(--sslp-accent, #9CA846);
    transform: scale(1.2);
}

/* Footer */
.sslp-gallery__footer {
    text-align: center;
    margin-top: 3rem;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.sslp-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sslp-gallery-lightbox--open {
    opacity: 1;
    visibility: visible;
}

.sslp-gallery-lightbox__content {
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.sslp-gallery-lightbox__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sslp-gallery-lightbox__spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--sslp-accent, #9CA846);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.sslp-gallery-lightbox__image {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
    border-radius: 0.5rem;
    display: none;
    margin: 0 auto;
}

.sslp-gallery-lightbox__iframe {
    width: 100%;
    height: calc(90vh - 60px);
    border-radius: 0.5rem;
    background: #fff;
    display: none;
}

.sslp-gallery-lightbox__caption {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    padding: 1rem 0;
}

.sslp-gallery-lightbox__close,
.sslp-gallery-lightbox__prev,
.sslp-gallery-lightbox__next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.sslp-gallery-lightbox__close:hover,
.sslp-gallery-lightbox__prev:hover,
.sslp-gallery-lightbox__next:hover {
    background: var(--sslp-accent, #9CA846);
    color: #000;
}

.sslp-gallery-lightbox__close { top: 1rem; right: 1rem; }
.sslp-gallery-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.sslp-gallery-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
