/* ESJUD Image Gallery Custom Styles */
.esjud-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.esjud-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.esjud-page-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.esjud-page-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Events Grid */
.esjud-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.esjud-event-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none !important;
    color: #333 !important;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.esjud-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

.esjud-card-icon {
    font-size: 2.5rem;
    margin-right: 20px;
}

.esjud-card-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
}

.esjud-card-info span {
    font-size: 0.9rem;
    color: #777;
}

.esjud-card-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.esjud-event-card:hover .esjud-card-arrow {
    color: #0073aa;
}

/* Gallery View */
.esjud-gallery-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.esjud-back-link {
    text-decoration: none !important;
    color: #0073aa !important;
    font-weight: 600;
}

.esjud-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.esjud-image-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.esjud-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.esjud-image-item:hover img {
    transform: scale(1.1);
}

.esjud-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-weight: 600;
}

.esjud-image-item:hover .esjud-image-overlay {
    opacity: 1;
}

.esjud-empty {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #999;
}

@media (max-width: 600px) {
    .esjud-events-grid {
        grid-template-columns: 1fr;
    }
    .esjud-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
