.pga-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .pga-albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pga-albums-grid {
        grid-template-columns: 1fr;
    }
}


.pga-album {
    text-align: center;
    padding: 6px;
    border: 1px solid #CFCFCF;
    box-sizing: border-box;
}

.pga-album-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal:target {
    display: block;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    padding-top: 50px; /* Add some top padding to avoid overlap with close button */
}


.modal-content img {
    width: 100%;
    height: auto;
    margin-bottom: 20px; /* Add some space between stacked images */
}

.modal-close {
    position: fixed; /* Changed to fixed */
    top: 20px;
    right: 50px;
    width: 40px; /* Set width and height for circular shape */
    height: 40px;
    background-color: #ff4444; /* Reddish background */
    border-radius: 50%; /* Make it circular */
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.logged-in .modal-close {
    top: 70px;
}

.modal-close:hover,
.modal-close:focus {
    background-color: #cc0000; /* Darker red on hover */
    text-decoration: none;
    cursor: pointer;
}

/* Ensure the close button is always on top */
.modal-close {
    z-index: 1000;
}

.pga-album H3 {
    font-size: 21px;
    padding-top: 9px;
}

.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-loaded {
    opacity: 1;
}
