.webkamera-section + .webkamera-section {
  padding-top: 0;
}

.webkamera-s2-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 1.3rem;
}
.webkamera-s2-title::before,
.webkamera-s2-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* Mobil: to kort i bredden. Fra 768px: så mange 300px-kolonner som får plass. */
.webkamera-fremhevet-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media only screen and (min-width: 768px) {
  .webkamera-fremhevet-grid {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.webkamera-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--color-main-white);
  padding: 12px 20px;
  border-radius: 3px;
  text-decoration: none;
}

@media only screen and (min-width: 768px) {
  .webkamera-card {
    gap: 14px;
    padding: 12px 16px;
  }
}

/* Hover på kortene: felles regel i 04-utilities.css */

.webkamera-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Kamera-ikonet skjules under 600px, så teksten får hele bredden */
.webkamera-card-icon {
  display: none;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 3px;
}

@media only screen and (min-width: 600px) {
  .webkamera-card-icon {
    display: block;
  }
}

/* min-width/overflow-wrap: lange ord (f.eks. "Valdrestunet") brytes i stedet
   for å sprenge kortet på smale skjermer */
.webkamera-card-textwrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Mindre tittel under 600px, der ikonet er skjult og kortene står to i bredden */
.webkamera-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

@media only screen and (min-width: 600px) {
  .webkamera-card-title {
    font-size: 1.2rem;
  }
}

.webkamera-card-text {
  margin: 2px 0 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

@media only screen and (min-width: 600px) {
  .webkamera-card-text {
    font-size: 0.9rem;
  }
}
