@charset "UTF-8";

/* ============================================================================================================= */
/* # PICTURE GALLERY AND FILTERING OPTIONS */

.gallery-bg {
  background-color: #f5f5f5;
}

.gallery-item {
  margin-bottom: 20px;
}

.gallery-filter-font {
  font-family: "Futura", "Montserrat", "Assistant", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
}

.gallery-img {
  border: 3px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gallery-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  border: 4px solid #FFDEAD;
  font-family: "Montserrat", "Assistant", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  padding: 10px 39px;
  color: black;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.gallery-button:hover {
  background-color: #FFDEAD;
  color: #000;
}

#locationFilter {
  height: 120px;
}


/* ====================================== */
/* MODERN RESPONSIVE IMAGE MODAL (used by both gallery and map) */

.modal.fade.show,
#mapImageModal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1050;
}

.modal-dialog.modal-lg,
#mapCarousel {
  max-width: 95%;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90vh;
  background: transparent;
}

.modal-content.gallery-modal-content,
#mapCarousel {
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  box-shadow: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalInnerWrapper,
#mapCarouselWrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-height: 100%;
}

#modalImage,
#mapCarouselImg {
  flex: 0 0 auto;
  max-height: 90vh;
  max-width: 65vw;
  object-fit: contain;
  background-color: black;
  display: block;
  margin: 0;
}

#modalTextBlock {
  flex: 0 0 auto;
  height: 100%;
  overflow-y: auto;
  background-color: #000;
  color: #fff;
  padding: 30px 25px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 35vw;
}

#modalHeadline {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

#modalLocation,
.modal-location-style {
  font-style: italic;
  color: #ccc;
  margin-bottom: 15px;
}

#modalDescription {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.close-modal-btn,
#mapModalClose {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.close-modal-btn:hover,
#mapModalClose:hover {
  color: #ffdeae;
  transform: scale(1.1);
}

#mapPrevBtn, #mapNextBtn {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1060;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
}

#mapPrevBtn { left: 10px; }
#mapNextBtn { right: 10px; }

@media (max-width: 768px) {
  #modalInnerWrapper,
  #mapCarouselWrapper {
    flex-direction: column;
    width: 100%;
    max-height: none;
  }

  #modalImage,
  #mapCarouselImg {
    max-width: 100%;
    max-height: 50vh;
  }

  #modalTextBlock {
    width: 100%;
    max-width: 100%;
    padding: 20px;
  }

  #mapContainer {
    width: 100%;
  }
}


/* ============================================================================================================= */
/* # LEAFLET MAP WITH PICTURE LOCATION */

#mapContainer {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

#map {
  width: 100%;
  height: 100%;
}

#mapImageModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1050;
  flex-direction: column;
}

#mapImageModal.active {
  display: flex;
}

#mapCarousel img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.8);
  user-select: none;
  pointer-events: none;
}

.meta-extra {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
  line-height: 1.4;
}
