@media (max-width: 1024px) {
        .lightbox-content {
            width: 92vw;
            height: 82vh;
            padding: 16px;
        }

        #lightbox img {
            height: 60vh;
        }
    }

@media (max-width: 768px) {
    .lightbox-content {
        width: 95vw;
        height: 80vh;
        padding: 12px;
    }

    #lightbox img {
        height: 55vh;
    }

    #prevImage {
        left: 8px;
    }

    #nextImage {
        right: 8px;
    }

    #downloadImage {
        bottom: 10px;
        right: 10px;
        font-size: 14px;
        padding: 8px 12px;
    }

    #authorName,
    #description {
        font-size: 14px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        width: 96vw;
        height: 78vh;
    }

    #lightbox img {
        height: 50vh;
    }

    .lightbox-button {
        font-size: 16px;
        padding: 8px;
    }

    #closeLightbox {
        top: 8px;
        right: 8px;
    }
}

    .photo-card {
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

        .photo-card:hover {
            transform: scale(1.05);
        }

        .photo-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 12px;
        }

    .photo-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-size: 16px;
        padding: 10px;
        border-radius: 0 0 12px 12px;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        text-align: center;
    }

    .photo-card:hover .photo-overlay {
        opacity: 1;
    }

    .photo-overlay p {
        margin: 4px 0;
        font-weight: bold;
    }

    .row1 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        width: 100%;
        padding-right: 0px !important;
        padding-left: 0px !important;
    }

    #lightbox.hidden {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    }

    #lightbox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    }

    .lightbox-content {
        position: relative;
        background-color: rgba(0, 0, 0, 0.6);
        padding: 20px;
        border-radius: 12px;
        width: 90vw;
        max-width: 1000px;
        height: 85vh;
        max-height: 750px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
        animation: fadeIn 0.4s ease-in-out;
    }

    #lightbox img {
        width: 100%;
        height: 65vh;
        max-height: 600px;
        object-fit: contain;
        object-position: center;
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
        background: #000;
    }

    .lightbox-button {
        background-color: rgba(255, 255, 255, 0.2);
        border: none;
        padding: 12px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 18px;
        color: white;
        transition: background 0.3s ease-in-out, transform 0.2s;
    }

        .lightbox-button:hover {
            background-color: rgba(255, 255, 255, 0.4);
            transform: scale(1.1);
        }

    #closeLightbox {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        font-weight: bold;
        background: none;
        color: white;
    }

    #prevImage, #nextImage {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        font-size: 24px;
        color: white;
    }
    @media (max-width: 768px) {
        .row1 {
            grid-template-columns: repeat(2, 1fr); /* 2 colunas para tablets */
        }
    }

    #prevImage {
        left: 20px;
    }

    #nextImage {
        right: 20px;
    }

    #downloadImage {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background-color: rgba(255, 255, 255, 0.3);
        padding: 10px 15px;
        border-radius: 8px;
        text-decoration: none;
        color: white;
        font-size: 16px;
        transition: background 0.3s ease-in-out;
    }

        #downloadImage:hover {
            background-color: white;
            color: black;
        }

    #authorName, #description {
        margin-top: 12px;
        font-size: 18px;
        color: white;
    }
