.pga-albums-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Changed to 3 columns */
    gap: 20px;
    margin-top: 30px;
}

.pga-album {
    text-align: center;
}

.pga-album-thumbnail {
    width: 300px;
    /* Fixed width */
    height: 200px;
    /* Fixed height */
    object-fit: cover;
    /* Ensure image fills dimensions without distortion */
    transition: opacity 0.3s ease;
    /* Smooth fade effect */
    opacity: 1;
    max-width: 100%;
    height: auto;
    border: 1px solid #CFCFCF;
    padding: 6px;
    /* Default state */
}

.pga-album-thumbnail:hover {
    opacity: 0.8;
    /* Fade on hover */
}

/* 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;
}

.carousel-arrow {
    width: 30px;
    /* Small size */
    height: 30px;
    /* Small size */
    background-color: grey !important;
    /* Grey background */
    color: white;
    /* White arrow color */
    border: none;
    /* Remove border */
    border-radius: 0%;
    /* Make it circular */
    display: flex;
    /* Center the arrow inside the button */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    /* Arrow size */
    cursor: pointer;
    /* Pointer cursor for interactivity */
    position: absolute;
    /* Position it correctly */
    z-index: 10;
    /* Ensure it stays on top */
    transition: background-color 0.3s ease, transform 0.2s ease;
    /* Smooth hover effect */
}

.carousel-arrow:hover {
    background-color: darkgrey;
    /* Slightly darker grey on hover */
    transform: scale(1.1);
    /* Slightly enlarge on hover */
}

.prev-arrow {
    left: 20px;
    /* Position to the left */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%);
}

.next-arrow {
    right: 20px;
    /* Position to the right */
    top: 50%;
    /* Center vertically */
    transform: translateY(-50%) !important;
}
