#accommodation .plan-wrapper img {
  width: 100%;
  left: 0;
  max-block-size: none;
  object-fit: unset;
  object-position: unset;
  height: auto;
}

#location .connectivity {
  grid-template-areas:
    "drive places"
    "fly fly";
}

#location .connectivity .connection-table:nth-child(2) {
  grid-area: places;
}

#location .connectivity .connection-table img,
#location .connectivity .connection-table:nth-child(3) img {
  width: auto;
  height: 2.5rem;
}

footer .agents .agent-block > a,
.login-container .login-footer .agents a img,
.data-room .login-footer .agents a img,
.login-container .login-footer .agents a:last-child img,
.data-room .login-footer .agents a:last-child img {
  height: 10rem;
}

footer .agents .agent-block:last-child img {
  height: 100%;
}

@media screen and (max-width: 1599px) {
  footer .agents .agent-block > a,
  .login-container .login-footer .agents a img,
  .data-room .login-footer .agents a img,
  .login-container .login-footer .agents a:last-child img,
  .data-room .login-footer .agents a:last-child img {
    height: 9rem;
  }
}

@media screen and (max-width: 1279px) {
  #location .connectivity .connection-table img,
  #location .connectivity .connection-table:nth-child(2) img,
  #location .connectivity .connection-table:nth-child(3) img {
    width: auto;
    height: 2rem;
  }

  #location .connectivity .connection-table ul {
    margin-left: 5rem;
  }

  #location .connectivity .connection-table ul li {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 1023px) {
  #accommodation .plan-wrapper {
    padding-bottom: 90%;
  }
  #accommodation .plan-wrapper img:first-child {
    position: absolute;
  }
  #accommodation .plan-wrapper img {
    object-fit: unset;
    object-position: unset;
    width: 100%;
    height: auto;
    max-height: none;
    top: -20%;
    bottom: unset;
  }

  #location .connectivity {
    grid-template-areas:
      "drive"
      "places"
      "fly";
  }

  #location .connectivity .connection-table ul {
    margin-left: 0rem;
  }

  #location .connectivity .connection-table ul li {
    font-size: 1.6rem;
  }

  #location .connectivity .connection-table img,
  #location .connectivity .connection-table:nth-child(2) img,
  #location .connectivity .connection-table:nth-child(3) img {
    height: 2.5rem;
  }

  footer .agents .agent-block > a {
    height: 8rem;
  }
}

@media screen and (max-width: 767px) {
  #accommodation .plan-wrapper {
    padding-bottom: 95%;
  }
}

@media screen and (max-width: 639px) {
  #accommodation .plan-wrapper {
    padding-bottom: 72.5%;
  }
  #accommodation .plan-wrapper img {
    top: -25%;
    bottom: unset;
  }
  #accommodation .plan-wrapper .text {
    display: none;
  }

  #location .connectivity .connection-table ul li {
    font-size: 1.5rem;
  }

  .login-container .login-footer .agents a img,
  .data-room .login-footer .agents a img,
  .login-container .login-footer .agents a:last-child img,
  .data-room .login-footer .agents a:last-child img {
    height: 7rem;
  }
}

@media screen and (max-width: 639px) {
  #accommodation .plan-wrapper img,
  #accommodation .plan-wrapper img:first-child {
    margin-left: 0;
    width: 100%;
  }

  #location .connectivity .connection-table ul li {
    font-size: 1.4rem;
  }

  #location .connectivity .connection-table img,
  #location .connectivity .connection-table:nth-child(2) img,
  #location .connectivity .connection-table:nth-child(3) img {
    height: 2rem;
  }
}

@media screen and (max-width: 500px) {
  footer .agents .agent-block > a {
    height: 7rem;
  }

  .login-container .login-footer .agents a img,
  .data-room .login-footer .agents a img,
  .login-container .login-footer .agents a:last-child img,
  .data-room .login-footer .agents a:last-child img {
    height: auto;
    width: 12rem;
  }
}


/* Gallery Section Styles */
#gallery {
  padding: 60px 0;
  background-color: #fff;
}

#gallery .container {
  max-width: 2200px;
  margin: 0 auto;
  padding: 0 20px;
}

#gallery h2 { 
    text-transform: uppercase;
	color:#000;
    font-weight: 900;
    font-size: 4.4rem;
    letter-spacing: 0.18em;
    text-align: center;
    margin-bottom: 0.8em;
}

/* Gallery Grid Layout - 4 images per row */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #000;
}

.gallery-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Overlay Effect */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(230, 38, 60, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.zoom-icon {
  color: #fff;
  font-size: 60px;
  font-weight: 300;
  line-height: 1;
  transform: scale(0.5);
  transition: transform 0.4s ease;
}

/* Hover Effects */
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .zoom-icon {
  transform: scale(1);
}

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

/* Fancybox Customization */
.fancybox-button {
  background: rgba(0, 0, 0, 0.8);
}

.fancybox-button:hover {
  background: #e6263c;
}

.fancybox-navigation button {
  background: rgba(230, 38, 60, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.fancybox-navigation button:hover {
  background: #e6263c;
}

.fancybox-bg {
  background: #000;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  #gallery h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  #gallery h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }
  
  #gallery {
    padding: 40px 0;
  }
  
  .zoom-icon {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  #gallery h2 {
    font-size: 28px;
  }
}

/* Counter styles for Fancybox */
.fancybox-counter {
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 15px;
  border-radius: 20px;
}

/* Thumbnail navigation (optional) */
.fancybox-thumbs {
  background: #000;
}

.fancybox-thumbs__list a::before {
  border-color: #e6263c;
}

.fancybox-show-thumbs .fancybox-inner {
  right: 220px;
}
