/* Modifikator bilder-hoch bei Aufruf von GridCards
- die Werte wirken nur auf eingebettetes Plugin PicSlide; ansonsten wirklungslos
- umschließender Container (Grid-Element) steuert Werte in anderem Plugin (PicSlide)
- damit kann das Standardaussehen von PicSlide per GridCards übersteuert werden
- alle zulässigen Variablen von PicSlide sind in der plugin.css von PicSlide dokumentiert
- per GridCard-Modifikator können einzelne PicSlide-Aufrufe individuell abgewandelt werden
*/
.gc-grid.bilder-hoch {
    --picslide-frame-ratio: 3 / 4;
    --picslide-frame-max-height: 36rem;
    --picslide-image-fit: cover;
    --picslide-image-position: center top;
}

.gc-grid.bilder-quer {
    --picslide-frame-ratio: 3 / 2;
    --picslide-frame-max-height: 48rem;
    --picslide-image-fit: cover;
    --picslide-image-position: center top;
	--gc-min: 27rem;
}

/* Fotos in GridCards sollen gleich hoch sein und sich responsive Verhalten
- dazu zwei Modifikatoren in Kombination
- bilder-einheitlich + eine der Formvarianten
*/
/* Gemeinsames Verhalten für Bilder bilder-einheitlich + Formvariante*/
.gc-grid.bilder-einheitlich {
    --gc-img-width: 100%;
    --gc-img-height: auto;
    --gc-img-max-height: none;
    --gc-img-fit: cover;
    --gc-img-position: center;
    --gc-img-margin-start: 0;
    --gc-img-margin-end: 0;
}

/* Formatvarianten */
.gc-grid.bildformat-hoch {
    --gc-img-ratio: 3 / 4;
}

.gc-grid.bildformat-quer {
    --gc-img-ratio: 4 / 3;
}

.gc-grid.bildformat-breit {
    --gc-img-ratio: 16 / 9;
}

.gc-grid.bildformat-quadrat {
    --gc-img-ratio: 1 / 1;
}


/* ===============================
Raster als kompakte Monatsbuttons 
=================================*/
.gc-raster.monatsbuttons {
  --gc-button-width: 7.5rem;       /* Mindestbreite */
  --gc-gap: .5rem;              /* Abstand zwischen Buttons */
  --gc-grid-padding: .25rem;

  --gc-cell-padding: 0;
  --gc-cell-min-height: 2.5rem;
  --gc-cell-background: #dceccf;
  --gc-cell-radius: 999px;

  --gc-button-color: #243b20;
  --gc-button-hover-color: #8a3414;

  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, var(--gc-button-width)), 1fr));

  justify-content: stretch;
}

.gc-raster.monatsbuttons > .gc-cell {
  color: var(--gc-button-color);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  transition: transform .18s ease, color .18s ease;
}

/* Innenabstand am Link: gesamte Buttonfläche anklickbar */
.gc-raster.monatsbuttons > .gc-cell > :is(a, button) {
  min-height: var(--gc-cell-min-height);
  padding: .45rem .75rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  cursor: pointer;
}

/* Tastaturbedienung */
.gc-raster.monatsbuttons > .gc-cell:focus-within {
  color: var(--gc-button-hover-color);
}

.gc-raster.monatsbuttons > .gc-cell > :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Leichter Zoom und Farbwechsel bei Hover  Modifikator monatsbuttons */
@media (hover: hover) and (pointer: fine) {
  .gc-raster.monatsbuttons > .gc-cell:hover {
    transform: scale(1.04);
    color: var(--gc-button-hover-color);
  }
}

/* Einstellung für reduzierte Bewegung beachten */
@media (prefers-reduced-motion: reduce) {
  .gc-raster.monatsbuttons > .gc-cell {
    transition: none;
  }

  .gc-raster.monatsbuttons > .gc-cell:hover {
    transform: none;
  }
}

