.gallery-header {
    padding: 3rem;
    width: 95%;
}
.image-gallery-header {
    text-align: center;
}

.image-gallery-header h1 {
    margin-bottom: 3rem;
}


.controls {
    margin-bottom: 15px;
}

.controls label {
    font-size: 2rem;
    color: #000086;
    margin-right: 1rem;
}

.controls select {
    width: 25rem;
    height: 2.5rem;
    margin-right: 3rem;
    text-align: center;
    font-size: 2rem;
}

.controls button {
    width: 20rem;
    height: 3rem;
    margin-right: 2rem;
    padding: 0 2rem;
    background: #007BFF;
    border: 2px solid #8DBFF4;
    color: whitesmoke;
    font-size: 1.4rem;
    font-family: "Nunito Sans", Arial, Helvetica, sans-serif;
    letter-spacing: 0.2rem;
    border-radius: 25px;
}

.controls button:hover {
    background: #063362;
}

.gallery {
    width:95%;
    margin: 0 auto 5rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 20px;
}

figure {
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    background: #fff;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}

figcaption {
    padding: 8px;
    font-size: 1.6rem;
    text-align: center;
    background: #f8f8f8;
    line-height: 1.4;
}

.caption-text {
    font-weight: bold;
}

.caption-category {
    font-style: italic;
    color: #2C2C2C;
    font-size: 1.6rem;
}
.pagination {
    margin-top: 15px;
    text-align: center;
    padding-bottom: 5rem;
}

.pagination button {
    padding: 6px 10px;
    margin: 0 3px;
    cursor: pointer;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
}

.pagination button.active {
    background: #007BFF;
    color: #fff;
    font-weight: bold;
    border-color: #007BFF;
}