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

header {
    text-align: center;
    padding: 20px;
    background-color: #004080;
    color: white;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px;
}

.gallery-item {
    width: 250px;
    height: 250px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s;
}

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

.gallery-item img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    display: block;
}

.caption {
    padding: 10px;
    font-weight: bold;
    color: #333;
}

/* Tile View */
.tile-view {
    padding: 20px;
}

.tile-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.tile-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tile-view.hidden, .full-image-modal.hidden {
    display: none;
}

.close-tile, .close-full {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #004080;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.full-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full-image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close-full {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    background: none;
}

/* Navigation buttons inside full image modal */
.full-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
}

.full-image-modal.hidden {
  display: none;
}

.full-image-modal img#full-image {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.nav-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.close-full {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-full:hover {
  color: #ff4d4d;
}


/* Uniform tile images - same size as single gallery images */
.tile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.tile-container img {
    width: 250px;   /* same as .gallery-item width */
    height: 200px;  /* slightly less than 250px to maintain aspect */
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.tile-container img:hover {
    transform: scale(1.03);
}

