﻿#popupTimer {
  display: none;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*overflow: auto;*/
  z-index: 1073;
  background-color: rgba(0,0,0,0.6);
}

.popups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  visibility: visible;
  top: 20%;
  z-index: 1074;
  position: absolute;
  right: 50% !important;
  transform: translate(50%,0);
  margin: 0 0 0 -240px;
}

.popup-img-style {
  height: 100%;
  width: 100%;
  border: 2px solid #fff
}

.popup-img-container {
  position: relative;
}

.popup-img-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #262424;
  opacity: 0.8;
  font-size: 25px;
  font-weight: normal;
  color: white;
  transform: translate(-50%, -50%);
  text-align: center;
  width: max(98%,98%);
}

.popup-close-button a {
  display: block;
  width: 37px;
  height: 37px;
  background: #f9f9f9 url('../images/close.png') center no-repeat;
  font-size: 0;
  background-color: #eaeaea !important;
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
}

a {
  color: inherit;
  cursor: pointer;
}

.stop-scrolling {
  overflow: hidden;
}

@media(max-width: 768px) {
  .popups {
    grid-template-columns: repeat(1, 1fr);
    font-size: 20px;
    width: 90%;
  }

  .popup-img-container {
    grid-column: auto !important;
  }
}

@media(max-width: 500px) {
  .popup-img-caption {
    font-size: 15px;
  }
}

@media (min-width: 630px) and (max-width: 1024px) {
  .popups {
    top: 225px;
  }
}

@media (min-width: 481px) and (max-width: 629px) {
  .popups {
    top: 245px;
  }
}

@media (min-width: 335px) and (max-width: 480px) {
  .popups {
    top: 200px;
  }
}

@media (max-width: 334px) {
  .popups {
    top: 245px;
  }
}

.hide-popup {
  color: white;
  margin-top: 0.5rem;
}
.popup-buttons {
  display: flex;
  justify-content: right;
  gap: 20px;
  margin-top: 0px;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: white;
  border-radius: 12px;
  padding: 10px;
  flex-wrap: wrap;
}

.popup-button {
  padding: 12px 20px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
  transition: background-color 0.3s ease-in-out;
  display: inline-block;
}

  .popup-button:hover {
    opacity: 0.8;
  }

@media(max-width: 400px) {
  .popup-button {
    font-size: 16px;
    min-width: 130px;
  }
}