@charset "utf-8";
/* CSS Document */

/* Header & Titles */
header {
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  font-family: 'Marcellus SC', serif;
  margin: 0;
}

h1 {
  font-size: 3rem;
  padding-bottom: 1.5em;
}

/* Container */
.container {
  width: 70%;
  max-width: 85ch;
  min-width: 45ch;
  margin: 0 auto 10px auto;
}

/* Body & Typography */
body {
  background-color: #fff;
  color: #000;
  font-size: 1.2rem;
  font-family: 'Red Hat Display', sans-serif;
}

p {
  font-size: 1.2rem;
  margin: 1.2em auto;
  max-width: 45ch;
  padding-bottom: 2em;
}
/* Images */
img {
  max-width: 90%;
  height: auto;
  display: block;
}

/* Navbar Toggler */
.navbar-toggler {
  background: transparent;
  border: none;
  padding: 1em;
}

/* Links */
a, a:visited {
  color: #000;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #000;
  text-decoration: underline;
}
/* Gallery */
div.gallery img {
  max-width: 90%;
  height: auto;
  margin: 10px;
}

/* Box Sizing */
* {
  box-sizing: border-box;
}

/* Responsive Gallery Columns */
.responsive {
  padding: 0 10px;
  float: left;
  width: 25%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 50%;
    height: 50%;
    margin: 5px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
    height: 50%;
  }
  footer {
    clear: both;
    margin-top: 100px;
    padding-top: 100px 0;
    border: none;
    border-radius: 8px;
    box-sizing: border-box;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1em;
    text-align: center;
  }
}

/* --- GALLERY MODAL BUTTONS --- */

/* Common button base styles */
.gallery-modal .side-arrow-btn,
.gallery-modal .gallery-close-btn {
  transition: background 0.18s, color 0.18s, opacity 0.18s, width 0.18s, height 0.18s, font-size 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  /* size defaults for desktop */
  width: 54px;
  height: 54px;
  font-size: 2.6rem;
  opacity: 0.8;
  z-index: 2000;
}

/* Arrow buttons default background */
.gallery-modal .side-arrow-btn {
  background: rgba(0,0,0,0.7);
  color: #fff;
}

/* Close button default background */
.gallery-modal .gallery-close-btn {
  background: #fff;
  color: #000;
  opacity: 1;
  z-index: 3000;
  line-height: 1;
}

/* Hover & Focus - unified for all sizes */
.gallery-modal .side-arrow-btn:focus,
.gallery-modal .side-arrow-btn:hover,
.gallery-modal .gallery-close-btn:focus,
.gallery-modal .gallery-close-btn:hover {
  background: #866f8b !important;
  color: #fff !important;
  opacity: 1 !important;
  outline: none;
}

/* Make sure size does not change on hover/focus */
.gallery-modal .side-arrow-btn:focus,
.gallery-modal .side-arrow-btn:hover,
.gallery-modal .gallery-close-btn:focus,
.gallery-modal .gallery-close-btn:hover {
  width: 54px !important;
  height: 54px !important;
  font-size: 2.6rem !important;
}

/* Positioning for arrows (desktop) */
.gallery-modal #galleryPrevBtn { left: 24px; }
.gallery-modal #galleryNextBtn { right: 24px; }
.gallery-modal .gallery-close-btn { top: 24px; right: 32px; }

/* Responsiveness: only change position and size for small screens */
@media (max-width: 900px) {
  .gallery-modal #galleryPrevBtn { left: -10px; }
  .gallery-modal #galleryNextBtn { right: -10px; }
}
@media (max-width: 600px) {
  .gallery-modal .gallery-close-btn {
    top: 10px; right: 10px;
    width: 44px !important; height: 44px !important; font-size: 2rem !important;
  }
  .gallery-modal .side-arrow-btn {
    width: 40px !important; height: 40px !important; font-size: 1.6rem !important;
  }
  /* Ensure hover/focus do NOT change size on small screens */
  .gallery-modal .side-arrow-btn:focus,
  .gallery-modal .side-arrow-btn:hover,
  .gallery-modal .gallery-close-btn:focus,
  .gallery-modal .gallery-close-btn:hover {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.6rem !important;
  }
  .gallery-modal .gallery-close-btn:focus,
  .gallery-modal .gallery-close-btn:hover {
    width: 44px !important;
    height: 44px !important;
    font-size: 2rem !important;
  }
}