/* LOGO AND STYLING */
.logo {
  max-width: 300px;
  max-height: 100px;
  height: auto;
  display: flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

#page-logo {
  transition: transform 0.3s ease;
  transform-origin: center;
}

@media (max-width: 600px) {
  #page-logo {
    max-width: 250px;
  }
}

:root {
  --header-height: 180px;
}

#igisza-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 20px 0;

  background: transparent;
  transition: all 0.3s ease;

   gap: 8px;
}


/* Scrolled state */
#igisza-header.scrolled {
  background:white;
  padding-bottom: 0;
 
  
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Logo animation */
#page-logo {
  transition: transform 0.3s ease, max-height 0.3s ease;
  transform-origin: center;
}

/* Smaller logo when scrolled */
#igisza-header.scrolled #page-logo {
  transform: scale(0.70);
}


/* Change the color of links on hover */
  .topnav a:hover {
    background-color: #7ce0e7;
    color: black;
  }
  
  /* Add a color to the active/current link */
  .topnav a.active {
    background-color: #4dcad3;
    color: rgb(0, 0, 0);
  }

.gallery-wrapper{
    border: 1px solid #ccc;
    background-color:rgba(255, 255, 255, 0.8);
    border-radius: 0px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* soft shadow */
}

/* Three columns side by side */
.column {
    float: left;
    width: 33.3%;
    margin-bottom: 20px;
    padding: 30 10px;
}
  
/* Display the columns below each other instead of side by side on small screens */
@media screen and (max-width: 650px) {
  .column {
    width: 100%;
    display: block;
  }
}
  
/* Add some shadows to create a card effect */
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 0 20px;
  background: white;
  color:#555;
}
  
/* Some left and right padding inside the container */
.map-container {
  padding: 2 10px;
  margin-bottom: 20px; /* space between images */
  width: 100%;
}

/* Clear floats */
.map-container::after, .row::after {
  content: "";
  clear: both;
  display: table;
}

/* add responsive layout */
.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}
  
/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 50%;
  padding: 0 20px;
}
  
  
/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}
  
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

/* box sizing */
*{
  box-sizing: border-box;
}

/* Container needed to position the overlay. Adjust the width as needed */
.map-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  font-family:'cmono';
}
.map-container img {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  border-radius: 6px; 
  transition: box-shadow 0.3s ease;
  display: block; /* prevents inline image spacing */
  max-width: 100%; /* keeps image responsive */
}

/* The overlay effect - lays on top of the container and over the image */
.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8); /* color & transparency */
  color: rgb(0, 0, 0);
  width: 100%;
  transition: opacity 0.5s ease;
  opacity: 0;
  font-size: 24px;
  padding: 20px;
  text-align: justify;
  pointer-events: none; /* disable interaction when hidden */
}

/* Show overlay on hover (desktop) or when container has active class (mobile tap) */
.map-container:hover .overlay,
.map-container.active .overlay {
  opacity: 1;
  pointer-events: auto; /* enable interaction when visible */
}

/* =========================================================
   MAP PROJECT MODAL
========================================================= */

.map-modal {
  position: fixed;
  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(30, 30, 30, 0.88);

  z-index: 999999;

  box-sizing: border-box;
}

.map-modal.open {
  display: flex;
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.map-modal-content {
  position: relative;

  width: min(1100px, 94vw);
  height: 90vh;
  max-height: 90vh;

  display: grid;
  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 0.8fr);

  background: #ffffff;

  overflow: hidden;

  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30);

  box-sizing: border-box;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.map-modal-left {
  min-width: 0;
  min-height: 0;
  height: 100%;

  display: flex;
  flex-direction: column;

  padding: 30px;

  overflow-y: scroll;
  overflow-x: hidden;

  box-sizing: border-box;

  scrollbar-gutter: stable;
}

.map-modal-left h2 {
  flex: 0 0 auto;

  margin: 0 0 20px;

  font-family: 'cmono';
  font-size: 1.6rem;
  font-weight: normal;
}


/* =========================================================
   LEFT PANEL SCROLLBAR
========================================================= */

.map-modal-left::-webkit-scrollbar {
  width: 10px;
}

.map-modal-left::-webkit-scrollbar-track {
  background: #eeeeee;
}

.map-modal-left::-webkit-scrollbar-thumb {
  background: #999999;
  border-radius: 5px;
}

.map-modal-left::-webkit-scrollbar-thumb:hover {
  background: #666666;
}


/* =========================================================
   MAP IMAGE AREA
========================================================= */

.map-modal-image {
  flex: 0 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  min-width: 0;
  min-height: 0;

  padding: 20px;

  background: #f3f3f3;

  box-sizing: border-box;

  margin-bottom: 20px;
}

.map-modal-image img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 48vh;

  object-fit: contain;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.12);

  border-radius: 4px;

  cursor:
    url("zoom-point.png") 16 16,
    zoom-in;
}


/* =========================================================
   CONTEXT / NOTES
========================================================= */

.map-modal-context {
  flex: 0 0 auto;

  width: 100%;

  margin: 0;

  padding: 20px;

  background: #f7f7f7;

  border: 1px solid #ddd;

  box-sizing: border-box;
}

.map-modal-context h3 {
  margin: 0 0 15px;

  font-family: 'cmono';
  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

.map-modal-context-row {
  margin: 0 0 15px;
}

.map-modal-context-row:last-child {
  margin-bottom: 0;
}

.map-modal-context-row span {
  display: block;

  margin-bottom: 4px;

  font-size: 0.7rem;
  font-family: 'cmono';
  text-transform: uppercase;

  letter-spacing: 0.08em;

  opacity: 0.55;
}

.map-modal-context-row p {
  margin: 0;

  font-family: 'cmono';

  font-size: 0.95rem;

  line-height: 1.6;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.map-modal-info {
  min-width: 0;
  min-height: 0;
  height: 100%;

  padding: 35px 30px;

  overflow-y: auto;
  overflow-x: hidden;

  border-left: 1px solid #ddd;

  background: #fafafa;

  box-sizing: border-box;

  scrollbar-gutter: stable;
}


/* =========================================================
   RIGHT PANEL SCROLLBAR
========================================================= */

.map-modal-info::-webkit-scrollbar {
  width: 10px;
}

.map-modal-info::-webkit-scrollbar-track {
  background: #eeeeee;
}

.map-modal-info::-webkit-scrollbar-thumb {
  background: #999999;
  border-radius: 5px;
}

.map-modal-info::-webkit-scrollbar-thumb:hover {
  background: #666666;
}


/* =========================================================
   RIGHT SIDE DATA ROWS
========================================================= */

.map-modal-info-row {
  display: flex;

  flex-direction: column;

  gap: 5px;

  margin-bottom: 24px;
}

.map-modal-info-row:last-child {
  margin-bottom: 0;
}

.map-modal-info-row span {
  font-size: 0.7rem;
  font-family: 'cmono';
  text-transform: uppercase;

  letter-spacing: 0.08em;

  opacity: 0.55;
}

.map-modal-info-row strong {
  font-family: 'cmono';

  font-weight: normal;

  line-height: 1.5;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.map-modal-close {
  position: absolute;

  top: 10px;
  right: 15px;

  z-index: 2;

  border: none;

  background: transparent;

  font-size: 2rem;

  line-height: 1;

  cursor:
    url("pickaxe2.png") 16 16,
    pointer;
}

/* =========================================================
   MOBILE MAP PROJECT MODAL
========================================================= */

@media (max-width: 700px) {

  .map-modal {
    padding: 12px;

    align-items: flex-start;
    justify-content: center;

    overflow: hidden;
  }


  /* ---------------------------------------------------------
     MODAL CONTENT
  --------------------------------------------------------- */

  .map-modal-content {
    width: 95vw;
    height: 92vh;
    max-height: 92vh;

    display: flex;
    flex-direction: column;

    overflow-y: scroll;
    overflow-x: hidden;

    box-sizing: border-box;

    scrollbar-gutter: stable;
  }


  /* ---------------------------------------------------------
     MOBILE SCROLLBAR
  --------------------------------------------------------- */

  .map-modal-content::-webkit-scrollbar {
    width: 10px;
  }

  .map-modal-content::-webkit-scrollbar-track {
    background: #eeeeee;
  }

  .map-modal-content::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 5px;
  }

  .map-modal-content::-webkit-scrollbar-thumb:hover {
    background: #666666;
  }


  /* ---------------------------------------------------------
     LEFT SIDE
  --------------------------------------------------------- */

  .map-modal-left {
    flex: 0 0 auto;

    width: 100%;
    height: auto;

    min-width: 0;
    min-height: 0;

    padding: 22px;

    overflow: visible;

    box-sizing: border-box;
  }

  .map-modal-left h2 {
    margin: 0 0 15px;

    font-size: 1.35rem;
  }


  /* ---------------------------------------------------------
     MAP IMAGE
  --------------------------------------------------------- */

  .map-modal-image {
    flex: 0 0 auto;

    width: 100%;

    padding: 12px;

    margin: 0 0 20px;

    box-sizing: border-box;
  }

  .map-modal-image img {
    display: block;

    max-width: 100%;
    max-height: 42vh;

    width: auto;
    height: auto;
  }


  /* ---------------------------------------------------------
     CONTEXT / NOTES
  --------------------------------------------------------- */

  .map-modal-context {
    flex: 0 0 auto;

    width: 100%;

    margin: 0;

    padding: 16px;

    box-sizing: border-box;
  }

  .map-modal-context-row {
    margin-bottom: 15px;
  }


  /* ---------------------------------------------------------
     RIGHT SIDE
  --------------------------------------------------------- */

  .map-modal-info {
    flex: 0 0 auto;

    width: 100%;
    height: auto;

    min-width: 0;
    min-height: 0;

    padding: 22px;

    border-left: none;
    border-top: 1px solid #ddd;

    overflow: visible;

    box-sizing: border-box;
  }

  .map-modal-info-row {
    margin-bottom: 18px;
  }


  /* ---------------------------------------------------------
     CLOSE BUTTON
  --------------------------------------------------------- */

  .map-modal-close {
    top: 8px;
    right: 12px;

    font-size: 2.5rem;
  }

}

/* =========================================================
   FULL-SCREEN MAP VIEWER
========================================================= */

.map-fullscreen-viewer {
  position: fixed;
  inset: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(20, 20, 20, 0.88);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;

  z-index: 1000001;

  box-sizing: border-box;
}

.map-fullscreen-viewer.open {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   IMAGE
========================================================= */

.map-fullscreen-image {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  box-sizing: border-box;
}

.map-fullscreen-image img {
  display: block;

  width: auto;
  height: auto;

  max-width: 96vw;
  max-height: 92vh;

  object-fit: contain;

  border: 2px solid #ffffff;

  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45);

  border-radius: 3px;

  box-sizing: border-box;

  cursor:
    url("zoom-point.png") 16 16,
    zoom-out;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.map-fullscreen-close {
  position: absolute;

  top: 15px;
  right: 22px;

  z-index: 2;

  border: none;

  background: transparent;

  color: white;

  font-size: 3rem;
  line-height: 1;

  cursor:
    url("pickaxe2.png") 16 16,
    pointer;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .map-fullscreen-viewer {
    padding: 12px;
  }

  .map-fullscreen-image img {
    max-width: 96vw;
    max-height: 90vh;
  }

  .map-fullscreen-close {
    top: 8px;
    right: 14px;

    font-size: 2.5rem;
  }

}
/* style footer content */
.footer {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #fffdfd;
    display: list-item;
    justify-content: center;
    font-family:'cmono';
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* soft shadow */
  }

  /* Scroll to Top button */
#scrollTopBtn {
    display: none;             /* hidden by default */
    position: fixed;           /* fixed position on screen */
    bottom: 30px;              /* distance from bottom */
    right: 30px;               /* distance from right */
    width: 60px;               /* button size */
    height: 60px;
    cursor: pointer;
    z-index: 1000;             /* make sure it's on top */
    transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
    transform: scale(1.1);     /* small hover animation */
}

.loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;

  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  font-size: 20px;
  font-family: 'cmono';

  opacity: 0;
  transform: translateY(10px);
  transition: 0.6s ease;
}

.loading.active {
  opacity: 1;
  transform: translateY(0);
}

.loading:not(.active) .dots span {
  animation-play-state: paused;
}

/* signal dots */
.dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #333;
  opacity: 0.25;
}

.loading.active .dots span {
  animation: signalPulse 1.2s infinite ease-in-out;
}

.loading.active .dots span:nth-child(1) { animation-delay: 0s; }
.loading.active .dots span:nth-child(2) { animation-delay: 0.2s; }
.loading.active .dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes signalPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

 /* Scroll to BOTTOM button */
.scroll-bottom {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 80px;
  height: 80px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease;
}

.scroll-bottom:hover {
  transform: scale(1.1);
}

.scroll-bottom img {
  width: 100%;
  height: 100%;
}

a,
button,
[role="button"],
input,
select,
textarea,
summary,
label,
.clickable,
.read-more-btn,
.prev,
.next,
.demo {
  cursor: url("pickaxe2.png"), pointer;
}

/*.zoomable-img {
  cursor: url("zoom-point.png"), zoom-in;
}
#zoomed-img {
  cursor: url("zoom-point.png"), zoom-out;
} */