/**
 * Beautiful Gallery Grid Styling
 * Modern grid layout with elegant thumbnails
 */

/* ==================== BEAUTIFUL GALLERY GRID ==================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px auto;
    padding: 30px 20px;
    max-width: 1200px;
}

.image-gallery a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    background: #f5f5f5;
    width: 100%;
    height: 100%;
}

.image-gallery a:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(255, 51, 51, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.12);
}

.image-gallery a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.image-gallery a:hover img {
    transform: scale(1.15);
}

/* Overlay dengan icon zoom */
.image-gallery a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.9) 0%, rgba(204, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.image-gallery a:hover::before {
    opacity: 1;
}

.image-gallery a::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    font-size: 40px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.image-gallery a:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Border effect */
.image-gallery a {
    border: 2px solid transparent;
}

.image-gallery a:hover {
    border-color: #ff3333;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet - 3 columns */
@media (max-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding: 25px 15px;
    }
}

/* Tablet Portrait - 2 columns */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 20px 10px;
    }

    .image-gallery a::after {
        font-size: 32px;
    }
}

/* Mobile - 1 column */
@media (max-width: 480px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 10px;
    }

    .image-gallery a {
        aspect-ratio: 16/9;
    }
}


