/* INDEX - PHOTOGRAPHIC PANELS */

#index .index-photo-panel {
  min-height: 580px;
  padding: 40px;
  justify-content: space-between;
  isolation: isolate;
}

/* PHOTOGRAPHS */
#index .index-photo-panel .post-img,
#index .index-photo-panel .post-img picture,
#index .index-photo-panel .post-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#index .index-photo-panel .post-img { z-index: -2; }
#index .index-photo-panel .post-img img { object-fit: cover; }

/* OVERLAY */
#index .index-photo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.5s ease;
}

/* TITLES - SLIGHTLY SMALLER H2, UPPERCASE AND WHITE */
#index .index-photo-panel .post-title,
#index .index-photo-panel:hover .post-title {
  font-size: 1.7em;
  line-height: 1.15;
  text-transform: uppercase;
  color: #fff;
}

/* DESCRIPTIONS - 25% SMALLER THAN PREVIOUS VERSION */
#index .index-photo-panel p {
  font-size: clamp(14.25px, 1.2vw, 18.75px);
  line-height: 1.5;
  color: #fff;
}

/* BUTTONS - ANDERS LANGUAGES COLORS */
#index .index-photo-panel .readmore {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: auto;
  padding: 10px 15px;
  margin-top: 15px;
  background: #800000;
  color: #ffffff;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

#index .index-photo-panel .readmore:hover {
  background: #CA0000;
  color: #ffffff;
}

#index .index-photo-panel .readmore i {
  margin-left: 8px;
}

/* LIGHTENING EFFECT */
#index .index-photo-panel:hover::before {
  background: rgba(0, 0, 0, 0.28);
}
#index .index-photo-panel:hover .post-img img {
  transform: scale(1.025);
}
#index .index-photo-panel:active::before {
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 1199px) {
  #index .index-photo-panel { min-height: 420px; }
}
