.gallery-main {
  padding-top: 88px;
  padding-bottom: 96px;
}
.gallery-hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 32px 0 100px;
}
.gallery-hero h1 {
  font-size: clamp(40px, 4.9vw, 76px);
  line-height: 1.07;
  letter-spacing: -0.065em;
  margin: 24px 0;
}
.gallery-hero h1 em {
  font-style: normal;
  color: #668d78;
}
.gallery-hero p {
  font-size: 19px;
  line-height: 1.7;
  color: #798078;
}
.gallery-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.gallery-text-link {
  font-size: 14px;
  font-weight: 600;
}
.gallery-hero-art {
  position: relative;
  padding: 15px;
  transform: rotate(3deg);
  border: 1px solid #fff;
  border-radius: 34px;
  background: #ffffffa8;
  box-shadow: 0 30px 70px #324c3a13;
}
.gallery-hero-art > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: 24px;
}
.gallery-art-label {
  display: block;
  text-align: center;
  font-size: 11px;
  padding: 16px 5px 3px;
  color: #69766e;
  letter-spacing: 0.04em;
}
.gallery-floating-note {
  position: absolute;
  bottom: 72px;
  left: -36px;
  border: 1px solid #ffffffb8;
  border-radius: 18px;
  padding: 20px 24px;
  background: #ffffffe3;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px #253b3012;
  transform: rotate(-7deg);
  font-size: 14px;
}
.gallery-orbit {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: #e3efe1;
  filter: blur(40px);
  z-index: -1;
}
.gallery-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 30px;
}
.gallery-community {
  scroll-margin-top: 110px;
}
.gallery-section-head h2 {
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.045em;
  margin: 12px 0 0;
  line-height: 1.15;
}
.gallery-section-head > p {
  font-size: 13px;
  color: #778076;
  line-height: 1.7;
}
.gallery-phase {
  font-size: 11px;
  white-space: nowrap;
  background: #edf1ec;
  color: #667665;
  border: 1px solid #e1e8df;
  border-radius: 40px;
  padding: 10px 14px;
}
.gallery-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #dfe3dc;
  margin-top: 38px;
  overflow: auto;
}
.gallery-tabs button {
  padding: 15px 0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  color: #7b817a;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
}
.gallery-tabs button[aria-pressed="true"] {
  border-color: #293d31;
  color: #293d31;
  font-weight: 600;
}
.gallery-filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0;
}
.gallery-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gallery-categories button {
  border: 0;
  border-radius: 30px;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  color: #6d766b;
}
.gallery-categories button[aria-pressed="true"] {
  background: #253a2d;
  color: white;
}
.gallery-search-row {
  display: flex;
  gap: 8px;
}
.gallery-search-row input,
.gallery-search-row select {
  font: inherit;
  font-size: 12px;
  border: 1px solid #e0e3dd;
  background: #fff;
  border-radius: 12px;
  padding: 11px;
  min-width: 0;
}
.gallery-search-row input {
  width: 205px;
}
.gallery-empty {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed #d8dfd5;
  border-radius: 26px;
  background: linear-gradient(120deg, #f7f9f4, #fff);
}
.gallery-empty > span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: #e9f0e4;
  border-radius: 18px;
  color: #6e906d;
  font-size: 30px;
  margin-bottom: 15px;
}
.gallery-empty h3 {
  font-size: 23px;
  letter-spacing: -0.03em;
  margin: 8px;
}
.gallery-empty p {
  max-width: 465px;
  margin: 15px auto 24px;
  font-size: 14px;
  color: #747e72;
  line-height: 1.8;
}
.gallery-grid {
  columns: 3;
  column-gap: 24px;
}
.gallery-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid #e4e7e1;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px #29382c0c;
}
.gallery-card > a {
  display: block;
}
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f5f6f2;
}
.gallery-card-info {
  padding: 20px;
}
.gallery-card h3 {
  margin: 10px 0;
  font-size: 20px;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.gallery-card p {
  font-size: 13px;
  color: #74806f;
  overflow-wrap: anywhere;
}
.gallery-meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7b8676;
}
.gallery-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.gallery-card-actions button,
.gallery-small-button {
  background: #f2f5ef;
  border: 1px solid #e3e8df;
  border-radius: 30px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.gallery-card-actions [aria-pressed="true"] {
  background: #deecde;
  color: #315033;
}
.gallery-review-note {
  padding: 12px;
  background: #f8f3eb;
  border-radius: 12px;
}
.gallery-skeletons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-skeletons > div {
  height: 300px;
  border-radius: 24px;
  background: linear-gradient(110deg, #edf0ea 20%, #f8faf6 40%, #edf0ea 60%);
  background-size: 200% 100%;
  animation: gallery-shimmer 1.6s infinite;
}
@keyframes gallery-shimmer {
  to {
    background-position: -200% 0;
  }
}
#gallery-more {
  display: block;
  margin: 28px auto;
}
#gallery-more[hidden] {
  display: none;
}
.gallery-concepts {
  margin-top: 90px;
}
.gallery-concept-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}
.gallery-concept-grid article {
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  border: 1px solid #e3e8df;
}
.gallery-concept-grid article + article {
  margin-top: 64px;
}
.gallery-concept-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: cover;
}
.gallery-concept-grid article > div {
  padding: 28px;
}
.gallery-concept-grid span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7e8977;
}
.gallery-concept-grid h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
.gallery-concept-grid p {
  font-size: 12px;
  color: #83907c;
}
.gallery-promise {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 86px;
  padding: 38px;
  border-radius: 28px;
  background: #edf2e8;
}
.gallery-promise > span {
  font-size: 45px;
  color: #799579;
}
.gallery-promise > div {
  flex: 1;
}
.gallery-promise h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.gallery-promise p {
  font-size: 13px;
  line-height: 1.8;
  color: #73816d;
  max-width: 650px;
  margin: 0;
}
.gallery-promise > a {
  font-size: 13px;
  white-space: nowrap;
}
.gallery-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 32px;
  border: 1px solid #e1e8dd;
  border-radius: 28px;
  background: #fcfdf9;
  color: #26372d;
  box-shadow: 0 40px 120px #15271d30;
  overflow: auto;
}
.gallery-dialog::backdrop {
  background: #16271e60;
  backdrop-filter: blur(9px);
}
.gallery-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}
.gallery-dialog-header h2 {
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 0;
  overflow-wrap: anywhere;
}
.gallery-dialog-header button {
  border: 0;
  background: #e9eee5;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 20px;
}
.gallery-detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
}
.gallery-detail-grid > img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  align-self: center;
}
.gallery-dialog p {
  font-size: 14px;
  line-height: 1.8;
  color: #717e6a;
  overflow-wrap: anywhere;
}
.gallery-dialog .gallery-description {
  white-space: pre-wrap;
}
.gallery-dialog form {
  display: grid;
  gap: 18px;
}
.gallery-dialog label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}
.gallery-dialog input:not([type="checkbox"]),
.gallery-dialog textarea,
.gallery-dialog select {
  border: 1px solid #dce4d6;
  padding: 13px;
  border-radius: 12px;
  font: inherit;
  background: white;
  width: 100%;
  box-sizing: border-box;
}
.gallery-dialog textarea {
  resize: vertical;
  min-height: 90px;
}
.gallery-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.gallery-dialog .gallery-check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.6;
}
.gallery-check input {
  margin-top: 4px;
  flex-shrink: 0;
}
.gallery-field-note {
  font-size: 12px !important;
  margin: 0;
}
.gallery-dialog .gallery-error {
  color: #ac4932;
  margin: 0;
}
.gallery-library {
  display: flex;
  gap: 12px;
  overflow: auto;
  padding: 6px 2px 14px;
  max-height: 220px;
}
.gallery-library button {
  flex: 0 0 145px;
  border: 2px solid transparent;
  background: white;
  border-radius: 15px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  font: inherit;
  font-size: 12px;
}
.gallery-library button[aria-pressed="true"] {
  border-color: #608861;
  background: #eff5eb;
}
.gallery-library img {
  width: 125px;
  height: 85px;
  object-fit: contain;
  border-radius: 8px;
}
.gallery-library span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 8px;
}
#gallery-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 24px;
  border-radius: 20px;
  background: #26382d;
  color: white;
  box-shadow: 0 8px 30px #0002;
  z-index: 1000;
  font-size: 13px;
  max-width: 90vw;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.gallery-main button:focus-visible,
.gallery-dialog button:focus-visible,
.gallery-main a:focus-visible {
  outline: 3px solid #90ab83;
  outline-offset: 4px;
}
@media (max-width: 1000px) {
  .gallery-hero {
    gap: 35px;
  }
  .gallery-floating-note {
    left: -15px;
    font-size: 12px;
    padding: 15px;
  }
  .gallery-section-head {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }
  .gallery-grid {
    columns: 2;
  }
  .gallery-promise {
    flex-wrap: wrap;
  }
  .gallery-promise > a {
    margin-left: 70px;
  }
}
@media (max-width: 640px) {
  .gallery-main {
    padding-top: 50px;
  }
  .gallery-hero {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
    gap: 42px;
  }
  .gallery-hero h1 {
    font-size: 46px;
  }
  .gallery-hero p {
    font-size: 16px;
  }
  .gallery-hero-art {
    max-width: 400px;
    margin: 0 10px;
  }
  .gallery-floating-note {
    bottom: 60px;
  }
  .gallery-grid {
    columns: 1;
  }
  .gallery-search-row {
    width: 100%;
  }
  .gallery-search-row input {
    flex: 1;
  }
  .gallery-tabs {
    gap: 24px;
  }
  .gallery-tabs button {
    font-size: 12px;
  }
  .gallery-section-head h2 {
    font-size: 28px;
  }
  .gallery-skeletons {
    grid-template-columns: 1fr;
  }
  .gallery-skeletons > div:not(:first-child) {
    display: none;
  }
  .gallery-concept-grid {
    grid-template-columns: 1fr;
  }
  .gallery-concept-grid article + article {
    margin-top: 0;
  }
  .gallery-concepts {
    margin-top: 64px;
  }
  .gallery-promise {
    padding: 26px;
    gap: 16px;
  }
  .gallery-promise > span {
    display: none;
  }
  .gallery-promise > div {
    flex-basis: 100%;
  }
  .gallery-promise > a {
    margin-left: 0;
  }
  .gallery-detail-grid,
  .gallery-form-row {
    grid-template-columns: 1fr;
  }
  .gallery-dialog {
    padding: 22px;
  }
  .gallery-categories button {
    padding: 9px 11px;
  }
  .gallery-phase {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-skeletons > div {
    animation: none;
  }
  .gallery-card {
    transition: none;
  }
  .gallery-card:hover {
    transform: none;
  }
}
.gallery-main .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gallery-filters[hidden] {
  display: none;
}
@media (max-width: 640px) {
  .gallery-hero-art .gallery-orbit {
    inset: -10px;
  }
}
