/*
 * Ghost Koenig editor card layouts (required by gscan / Ghost Admin).
 * @see https://ghost.org/docs/themes/content/
 */

.kg-width-wide {
  position: relative;
  width: 85vw;
  max-width: 85vw;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-wide img,
.kg-width-wide iframe,
.kg-width-wide video {
  width: 100%;
}

.kg-width-full img,
.kg-width-full iframe,
.kg-width-full video {
  width: 100%;
}

/* Galleries (common gscan recommendation) */
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.kg-gallery-row {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: center;
}

.kg-gallery-image {
  flex: 1 1 0;
  min-width: 0;
}

.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
