:root {
  --app-height: 100vh;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  margin: 0;
}

.hero-section {
  height: var(--app-height);
  background-image: var(--img-portrait);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  position: relative;
}

body.orientation-landscape .hero-section {
  background-image: var(--img-landscape);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2rem;
  display: flex;
  /* Responsive flex direction */
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-content * {
  font-family: "Crimson Text", serif;
}

@media (min-width: 640px) {
  .hero-content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.gallery {
  padding-bottom: 4rem;
  background-color: #ffffff;
}

.gallery-grid {
  padding-top: 0;
}

.grid-sizer,
.gallery-item {
  width: calc(50% - 1px);
}

@media (min-width: 900px) {

  .grid-sizer,
  .gallery-item {
    width: calc(33.333% - 1.33px);
  }
}

@media (min-width: 1200px) {

  .grid-sizer,
  .gallery-item {
    width: calc(25% - 1.5px);
  }
}

.gallery-item {
  overflow: hidden;
  margin-bottom: 2px;
}

.gallery-item:hover {}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.gallery-item img.loading {
  display: none;
}

.panel-gallery-item {
  display: none;
}

.panel-gallery-item.visible {
  display: block;
}

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

.galleryIconGroup {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding: 0.8rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 39;
}

.galleryIconGroup>svg {
  scale: 0.7;
}

.mobx-holder.mobx-loading-more::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mobx-spin 1s linear infinite;
  z-index: 10;
}

@keyframes mobx-spin {
  to {
    transform: rotate(360deg);
  }
}

.iconFavourite,
.iconHidden {
  color: #fff;
  visibility: hidden;
}

.isFavouritePhoto .iconFavourite {
  visibility: visible;
}

.isHiddenPhoto .iconHidden {
  visibility: visible;
}

.isHiddenPhoto::after {
  background: #0000007a;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  content: "";
}

.video-item video {
  pointer-events: none;
}

.view-gallery-btn {
  border: 1px solid white;
  padding: 0.75rem 1.5rem;
  color: white;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 0.25rem;
}

.view-gallery-btn:hover {}

.gallery-nav {
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  background-color: #ffffff;
  z-index: 30;
  transition: transform 0.3s ease-in-out;
}

.gallery-nav.nav-hidden {
  transform: translateY(-100%);
}

.gallery-nav .logo-container {
  text-align: left;
}

.gallery-nav .sub-logo {
  color: #6b7280;
}

.nav-tabs-container {
  width: 100%;
  overflow-x: auto;
  /* For spacing for the active underline */
}

/* Hide scrollbar */
.nav-tabs-container::-webkit-scrollbar {
  display: none;
}

.nav-tabs-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


.gallery-nav .nav-links {
  display: inline-flex;
  gap: 1.5rem;
  white-space: nowrap;
}

.gallery-nav .nav-links a {
  color: #4b5563;
  transition: all 0.2s;
  position: relative;
  padding-bottom: 4px;
  flex-shrink: 0;
  /* Prevent links from shrinking */
}

.gallery-nav .nav-links a.active::after {
  content: '';
  position: absolute;
  transition: all 0.2s;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #111827;
}

.gallery-nav .nav-links a:hover {
  color: #111827;
}

.search-and-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.searchContainer {
  position: relative;
  display: none;
}

.nav-icons svg {
  color: #4b5563;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-icons svg:hover {
  color: #111827;
}

.hero-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.hero-top-nav .logo {
  font-size: 0.60rem;
  text-transform: uppercase;
}