/* ===================== art.css ===================== */

/* Base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle at top, #140a24, #0b0614 60%);
    color: #f5ecff;
}

/* Header */
header {
    text-align: center;
    margin: 60px auto 30px;
	position: relative;
    max-width: 1200px;
}

.back-button {
	position: absolute;
	left: 8px;
	top: 8px;
}

.item-socials {
    display: flex;
    padding: 8px 8px 8px 8px;
    align-content: center;
    gap: 4px;
    justify-content: flex-end;
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #f0dbff;
    text-shadow: 0 0 12px rgba(180, 120, 255, 0.3);
}

/* Gallery Layout */
.gallery {
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 20px;

    column-count: 4;
    column-gap: 20px;
	/* Fix footer overlap */
    overflow: hidden;
}



/* Items */
.item {
    break-inside: avoid;
    margin-bottom: 20px;

    background: linear-gradient(160deg, #1a0f2b, #120a1f);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(180, 120, 255, 0.15);
    box-shadow: 0 10px 30px rgba(120, 0, 255, 0.2);
    transition: all 0.25s ease;
	opacity: 0;
    position: relative;
    transform: translateY(10px);
    animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover lift */
.item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(150, 70, 255, 0.35);
}

/* Image */
.item img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Video */
.item video {
    width: 100%;
    display: block;
    border: none;
}

/* Text under images */
.item p {
    padding: 12px 14px;
    margin: 0;
    font-size: 0.9rem;
    color: #d8c8ff;
    line-height: 1.5;
}

/* Special text item */
.item.text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.item.text h1 {
    font-size: 1.5rem;
    color: #f0dbff;
    text-shadow: 0 0 10px rgba(180, 120, 255, 0.4);
}

/* Subtle overlay glow */
.item::after {
    content: \"\";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(180,120,255,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item:hover::after {
    opacity: 1;
}

/* Modal (upgraded) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(10px);

    align-items: center;
    justify-content: center;
}

/* Modal image */
.modal-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    border: 1px solid rgba(200, 140, 255, 0.3);
    box-shadow: 0 0 40px rgba(150, 70, 255, 0.4);
}

/* Close button */
.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: #f0dbff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(180, 120, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

/* Responsive columns */
@media (max-width: 1000px) {
    .gallery {
        column-count: 3;
    }
}

@media (max-width: 700px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery {
        column-count: 1;
    }
}