/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(3deg);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-img {
    max-height: 80vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox Controls */
.lightbox-btn {
    position: absolute;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-btn:hover {
    color: #2dd4bf;
}

.btn-close {
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
}

.btn-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.btn-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

@media (min-width: 768px) {
    .btn-prev {
        left: 2.5rem;
    }

    .btn-next {
        right: 2.5rem;
    }
}

@media (min-width: 1024px) {
    main {
        max-width: 95%;
        padding-inline: 40px;
    }
}

.footer-social {
    display: flex;
    flex-direction: column;
    /* Stacks links row and text vertically */
    align-items: center;
    /* Centers everything */
    gap: 10px;
    /* Space between icons and text */
    font-family: sans-serif;
}

.social-links-row {
    display: flex;
    /* Keeps icons in a single horizontal line */
    gap: 20px;
    /* Space between each icon */
}

.social-links-row a {
    /* color: inherit; */
    /* Takes color from parent or remains default */
    text-decoration: none;
}

.designer-tag {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .footer-copyright {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .logo-box {
        width: 95px;
        height: 50px;
    }
}

a,
button,.like-container {
    -webkit-tap-highlight-color: transparent;
}