/* Gallery Modal Styles */

/* Gallery Section Styles */
.slt-gallery-section {
    padding: 60px 20px;
}

.slt-gallery-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slt-gallery-header .slt-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.slt-gallery-header .slt-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Gallery Grid */
.slt-gallery-grid {
    display: grid;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.slt-gallery-grid.slt-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.slt-gallery-grid.slt-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.slt-gallery-grid.slt-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.slt-gallery-grid.slt-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.slt-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slt-gallery-item:hover {
    transform: scale(1.02);
}

.slt-gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.slt-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slt-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slt-gallery-item:hover .slt-gallery-overlay {
    opacity: 1;
}

.slt-gallery-overlay i {
    color: #ffffff;
    font-size: 2rem;
}

/* Instagram Link */
.slt-gallery-instagram {
    text-align: center;
    margin-top: 40px;
}

.slt-gallery-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.slt-gallery-instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.4);
    color: #ffffff;
}

.slt-gallery-instagram-link i {
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .slt-gallery-grid.slt-grid-4,
    .slt-gallery-grid.slt-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .slt-gallery-section {
        padding: 40px 16px;
    }

    .slt-gallery-header {
        margin-bottom: 30px;
    }

    .slt-gallery-header .slt-section-title {
        font-size: 2rem;
    }

    .slt-gallery-header .slt-section-subtitle {
        font-size: 1rem;
    }

    .slt-gallery-grid.slt-grid-2,
    .slt-gallery-grid.slt-grid-3,
    .slt-gallery-grid.slt-grid-4,
    .slt-gallery-grid.slt-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    .slt-gallery-overlay i {
        font-size: 1.5rem;
    }
}

/* Gallery Modal Styles */

.slt-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.slt-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slt-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.slt-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.slt-modal-prev,
.slt-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #222222;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.slt-modal-prev {
    left: 20px;
}

.slt-modal-next {
    right: 20px;
}

.slt-modal-prev:hover,
.slt-modal-next:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.slt-modal-image-wrapper {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slt-modal-image-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.slt-modal-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 90%;
    z-index: 10;
}

.slt-modal-caption {
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.slt-modal-counter {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

button.slt-modal-next i.fas, button.slt-modal-prev i.fas {
    margin-right: 0 !important;
}

/* Modal Mobile Responsive */
@media (max-width: 768px) {
    .slt-modal-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .slt-modal-prev,
    .slt-modal-next {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

    .slt-modal-prev {
        left: 10px;
    }

    .slt-modal-next {
        right: 10px;
    }

    .slt-modal-image-wrapper {
        max-width: 95vw;
        max-height: 70vh;
    }

    .slt-modal-image-wrapper img {
        max-height: 70vh;
    }

    .slt-modal-info {
        bottom: 20px;
    }

    .slt-modal-caption {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .slt-modal-counter {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}
