/*$color-palette: (
        "orange": #FF6B35,
        "light-orange": #F7C59F,
        "lightest-orange": #EFEFD0,
        "blue": #004E89,
        "light-blue": #1A659E,
) !default;

$gradients: (
        "orange": (
                "start": #FF6B35,
                "end": #F7C59F
        ),
        "blue": (
                "start": #004E89,
                "end": #1A659E
        ),
) !default;

$orange: map-get($color-palette, "orange") !default;
$light-orange: map-get($color-palette, "light-orange") !default;
$lightest-orange: map-get($color-palette, "lightest-orange") !default;
$blue: map-get($color-palette, "blue") !default;
$light-blue: map-get($color-palette, "light-blue") !default;*/
.block--gallery-card {
  --card-width: 100%;
}

.gallery-inner > .block--gallery-card {
  flex: 1 1 var(--card-width, 100%);
  max-width: var(--card-width, 100%);
  align-self: stretch;
  padding: 0 calc(0.5 * var(--bs-gutter-x));
}

@media (min-width: 768px) {
  .gallery-inner > .block--gallery-card {
    --card-width: 50%;
  }
}
@media (min-width: 992px) {
  .gallery-inner > .block--gallery-card {
    --card-width: calc(100% / (var(--card-count, 4) - 1)) ;
  }
}
@media (min-width: 1200px) {
  .gallery-inner > .block--gallery-card {
    --card-width: calc(100% / var(--card-count, 4));
  }
}
.block--gallery-card .card {
  position: relative;
  height: calc(100% - 2px);
  margin-top: 0;
  box-shadow: none;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.15s ease-in-out, box-shadow 0.3s ease-in-out;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block--gallery-card .card img {
  max-height: 80vh;
  -o-object-fit: contain;
     object-fit: contain;
}

.block--gallery-card .card.linked:hover, .block--gallery-card .card.linked:focus-within {
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.block--gallery-card .card.linked:hover:not(.has-background), .block--gallery-card .card.linked:focus-within:not(.has-background) {
  transform: scale(1.025);
}

.block--gallery-card .card.linked a {
  text-decoration: none;
}

.block--gallery-card .card p:last-of-type {
  margin-bottom: 0;
}

.block--gallery-card .card a {
  color: var(--bs-dark);
  font-weight: bold;
}

.block--gallery-card .card a.--card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  text-align: center;
  transition: opacity 0.15s ease-in-out;
  z-index: 1;
}

.block--gallery-card .card a.--card-link span {
  position: relative;
  z-index: 2;
}

.block--gallery-card .card a.--card-link::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background-color: var(--bs-gray-200);
  opacity: 0.9;
  z-index: 1;
}

.block--gallery-card .card:hover .--card-link, .block--gallery-card .card:focus .--card-link {
  opacity: 1;
}

.block--gallery-card .card .wp-block-button .wp-element-button {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-width: 1px;
}

.block--gallery-card .wp-block-heading.has-background {
  padding: 0.5em 1em;
  margin: 0 calc(-1 * var(--bs-spacer-3, -1rem));
}

.editor-styles-wrapper .wp-block-lvl-gallery-card * {
  max-width: 100% !important;
}

.editor-styles-wrapper .block--gallery-card {
  height: 100%;
}

.editor-styles-wrapper .block--gallery-card .card {
  min-width: initial;
  border: 0;
}
