/* Legacy styles from old project (z/styles)
   TODO: Gradually migrate these to component-scoped styles
   Kept here temporarily for quick integration */

/* ==================== Page Structure ==================== */

.page {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
}

/* ==================== Decorative Blocks ==================== */

.block-fluid {
  width: var(--fluid-width);
  margin-inline: auto;
}

.block-decorated {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background-color: var(--block-background-color);
}

/* ==================== Text Utilities ==================== */

.text-mark {
  font-variation-settings:
    "wght" 505.81,
    "slnt" -1.98;
  text-shadow: 2px 2px 0 yellow;
}

/* ==================== Image Container ==================== */

.image-container {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
}

.image-responsive {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-overlay-text {
  position: absolute;
  top: 25px;
  right: 25px;
  display: inline-block;
  opacity: 50%;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  mix-blend-mode: hard-light;
}

.image-overlay-text-stroke {
  text-shadow:
    -1px 0 #fff,
    0 1px #fff,
    1px 0 #fff,
    0 -1px #fff;
}

@supports ((text-stroke: 1px #fff) or (-webkit-text-stroke: 1px #fff)) {
  .image-overlay-text-stroke {
    text-shadow: none;
    -webkit-text-stroke: 1px #fff;
  }
}

@media (max-width: 375px) {
  .image-overlay-text {
    right: 13px;
  }
}

/* ==================== Icons ==================== */

.like-icon {
  width: 39px;
  height: 36px;
  cursor: pointer;
}

/* ==================== Save Button (legacy, may not be used in new design) ==================== */

.save {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0 100px;
}

.save-icon {
  inline-size: 21px;
  block-size: 21px;
}

@media (max-width: 375px) {
  .save-icon {
    inline-size: 28px;
    block-size: 28px;
  }
}

/* ==================== Dialog (legacy) ==================== */

.save-dialog {
  box-sizing: border-box;
  width: 353px;
  border: none;
  padding: 30px 30px 25px;
  font-family: var(--font-accent);
  text-transform: uppercase;
  aspect-ratio: 353 / 193;
}

.save-dialog::backdrop {
  background-color: var(--color-bg-overlay);
}

.save-dialog__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-inline: auto;
}

.save-dialog__content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.save-dialog-icon {
  flex-shrink: 0;
  inline-size: 39px;
  block-size: 39px;
}

.save-dialog__text {
  line-height: 1.5;
  text-align: left;
  max-inline-size: 234px;
  font-size: var(--text-sm);
  text-transform: uppercase;
}

body:has(dialog[open]) {
  padding-right: 15px;
  overflow: hidden;
}

@media (max-width: 375px) {
  .save-dialog {
    width: 341px;
    aspect-ratio: 1.785;
  }
}

