:root {
    /* Change this number to adjust the grid size */
    --columns: 6;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}


.header {
    position: relative;
    padding: 20px;
    padding-bottom: 40px;
    text-align: center;
    background-color: white;
    border-bottom: 1px solid #ddd;
}

.gallery-title {
    margin: 0;
    font-size: 36px;
}
.page-subtitle {
    margin: 5px 0 0 0;
    font-size: 22px;
    font-weight: normal;
    color: #555;
}

.logo {
    position: absolute;
    top: 5px;
    left: 10px;
    width: 100px;
    height: 100px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-button {
    position: absolute;
    top: 30px;
    right: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 20px;
    padding: 40px;
}


/* Gallery cells */
.gallery-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.03);
}


/* Placeholder image */
.image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #aaa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
}


/* Image name */
.image-name {
    padding: 15px;
    font-size: 18px;
}

/* Images inside gallery cells */
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}


/* Make image cells clickable */
.gallery-item {
    cursor: pointer;
}


/* Fullscreen image viewer */
#image-viewer {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}


#image-viewer img {
    max-width: 90%;
    max-height: 90%;
}


.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
