.at-gallery-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.at-gallery-item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.at-gallery-item:hover {
  transform: scale(1.02);
}

.at-gallery-folder {
  display: block;
  color: inherit;
  text-decoration: none;
}

.at-gallery-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.at-gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 16px 0;
  color: #0F628A;
}

.at-gallery-date {
  font-size: 0.9rem;
  color: #555;
  padding: 4px 16px 12px;
	color: #0FA3CA;
}

/* Domi added gallery-view */

.at-gallery-view-title {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 40px 0;
  color: #0F628A;
}

.at-gallery-view-description {
  padding: 12px 40px 0;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .at-gallery-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .at-gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .at-gallery-container {
    grid-template-columns: 1fr;
  }
}
#single-gallery.at-gallery-view-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

#single-gallery .at-gallery-image-thumb {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  border: 1px solid #ddd;
}

#single-gallery .at-gallery-image-thumb:hover {
  transform: scale(1.03);
}

@media (max-width: 1200px) {
  #single-gallery.at-gallery-view-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 992px) {
  #single-gallery.at-gallery-view-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  #single-gallery.at-gallery-view-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  #single-gallery.at-gallery-view-container {
    grid-template-columns: 1fr;
  }
}

.at-gallery-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  padding-top: 60px;
}

.at-gallery-modal img.at-gallery-modal-image {
  max-width: 90%;
  max-height: 80%;
  border-radius: 4px;
}

.at-gallery-modal-close {
  position: absolute;
  top: 150px;
  right: 15px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.at-gallery-prev,
.at-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    background-color: #0F628A;
    display: block;
    z-index: 1002;
    cursor: pointer;
	padding: 5px;
}
.at-gallery-prev {
    left: 20px;
}

.at-gallery-next {
    right: 20px;
}

#at-gallery-load-more,
#at-gallery-load-more-images
{
  background-color: #0073aa;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#at-gallery-load-more:hover {
  background-color: #005f8d;
}

.custom-dropdown li {
	text-transform: capitalize;
}


.custom-dropdown-selected {
	text-transform: capitalize;
}

body.at-modal-open { 
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0;
  left: 0;
}

html.at-modal-open {
  overflow: hidden !important;
}

.et_pb_section.at-modal-expanded {
  min-height: 800px !important;
  height: auto !important;
}