/* General styles for the gallery navigation */
.gallery-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.gallery-nav a {
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.gallery-nav a:hover {
    background-color: #0073aa;
    color: #fff;
}

.gallery-nav a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* General styles for the gallery container */
.gags-cluster {
    display: flex;
    flex-direction: column; /* Default to column layout for top navigation */
    width: 100%; /*debug*/
}

.gallery-nav.top {
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-container {
    flex: 1; /* Default to take up full width */
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Side navigation style */
.gallery-nav.side {
    flex-direction: column;
    width: 250px; /* Fixed width for sidebar */
    background-color: #f9f9f9;
    border-right: 1px solid #ccc;
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100%; /* Full height of the container */
    overflow-y: auto; /* Scrollable if content overflows */
}

.gags-cluster.side {
    flex-direction: row; /* Switch to row layout for side navigation */
    align-items: flex-start;
}


@media (max-width: 768px) {
    .gallery-nav.top {
        flex-wrap: wrap;
    }

    .gallery-nav.side {
        align-items: stretch;
        width: 100%; /* Full width for sidebar on smaller screens */
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .gags-cluster.side {
        flex-direction: column; /* Stack navigation and gallery on smaller screens */
        
    }
}