@import './common.css';

div:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    user-select: none;
}

.gallery a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 4px solid var(--highlight);
    transition: transform 0.3s ease;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    box-sizing: border-box;
}

.image-container:hover img {
    transform: scale(1.1);
    border-color: var(--accent);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}

.watermark {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: var(--accent);
    font-size: 0.8rem;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}