/* galeria.css */
/* Estilo Instagram Feed */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px 0;
}

.insta-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.insta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-info {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.insta-item:hover .insta-info {
    transform: translateY(0);
}

.insta-event {
    display: block;
    font-family: var(--font-metal);
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.insta-photographer {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Overlay Modal */
.insta-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-image-container {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: calc(80vh - 60px);
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
}

.image-info {
    color: white;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    width: 100%;
}

.image-title {
    color: var(--primary-color);
    font-family: var(--font-metal);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.image-meta {
    font-size: 0.9rem;
    opacity: 0.8;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.nav-btn {
    pointer-events: all;
    background: rgba(255, 0, 0, 0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-close {
        top: -30px;
        font-size: 1.5rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .instagram-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .insta-event {
        font-size: 0.9rem;
    }
    
    .insta-photographer {
        font-size: 0.8rem;
    }
}
/* Asegura que el contenedor principal no tenga overflow oculto */
.instagram-gallery .container {
    overflow: visible;
}

/* Fuerza el grid incluso si hay conflictos */
.instagram-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 15px !important;
}

/* Estilo para los botones de filtro */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.filter-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    font-family: var(--font-metal);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: black;
}
/* Filtros desplegables - Estilo personalizado */
.gallery-filters {
    margin-top: 2rem;
}

.filter-dropdown {
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.filter-dropdown:hover, .filter-dropdown:focus {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.filter-dropdown::after {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-menu-dark {
    background: linear-gradient(135deg, #1a1a1a 0%, #270202 100%);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-item.filter-option {
    padding: 0.5rem 1.5rem;
    color: var(--text-color);
    transition: all 0.2s;
    position: relative;
}

.dropdown-item.filter-option:hover, 
.dropdown-item.filter-option:focus {
    background: rgba(255, 0, 0, 0.2);
    color: var(--primary-color);
}

.dropdown-item.filter-option.active {
    color: var(--primary-color);
    font-weight: bold;
}

.dropdown-item.filter-option.active::before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
}

.current-filter {
    display: inline-block;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}