/* Styles for jacana_destinations_gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* Responsive: 3 columns on tablets */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: 2 columns on mobile landscape */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on small mobile */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #c9b28d, #7b5a3a);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.gallery-item.has-image {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    isolation: isolate;
}

.gallery-item.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0) 40%, rgba(12, 10, 9, 0.65));
    z-index: 0;
}

.gallery-label {
    position: relative;
    z-index: 1;
}
