
main {
    max-width: 1200px;
    margin: 0 auto 2em;
    padding: 0 1em;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    color: #333;
    text-align: center;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover,
.gallery-grid img:focus {
    outline: 3px solid var(--bluesky-blue);
    z-index: 1;
    position: relative;
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 800px;
    max-width: 90vw;
    height: 800px;
    background: black;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5em 1em 1em;
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
}

.modal-content img {
    max-width: 100%;
    max-height: 750px;
    object-fit: contain;
    border-radius: 8px;
    background: black;
    user-select: none;
}

.modal-caption {
    margin-top: 0.8em;
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    user-select: text;
}

.modal-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    padding: 0;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #f44336;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .modal-content {
        width: 95vw;
        height: 95vw;
    }
    .modal-content img {
        max-height: 90vw;
    }
}
.page-title {
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  margin: 1em 0 0.5em;
  color: #333;
}
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  border: none;
  color: white;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.3s ease;
  line-height: 1;
  padding: 0;
}

.modal-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--bluesky-blue);
}


.modal-arrow-left {
  left: 10px;
}

.modal-arrow-right {
  right: 10px;
}
