@font-face {
  font-family: "font";
  src: url("./fonts/font1.woff2") format("woff2");
  font-weight: normal;
}

@font-face {
  font-family: "font2";
  src: url("./fonts/font2.woff2") format("woff2");
  font-weight: medium;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font: 10pt "font", sans-serif;
  min-height: 100vh;
  text-transform: lowercase;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}


body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: #fff;
  z-index: 997;
}




.bold {
  font: medium "font2", monospace;
  font-size: 10pt;
}

p {
  margin: 0;
}

::selection {
  background: rgba(0, 0, 0, 1) !important;
  background-color: rgba(0, 0, 0, 1) !important;
  color: #fff !important;
  text-shadow: none !important;
}

::-moz-selection {
  background: rgba(0, 0, 0, 1) !important;
  background-color: rgba(0, 0, 0, 1) !important;
  color: #fff !important;
  text-shadow: none !important;
}

@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    ::selection {
      background: rgba(0, 0, 0, 1) !important;
      background-color: rgba(0, 0, 0, 1) !important;
      -webkit-text-fill-color: #fff !important;
    }
  }
}

.snowflake {
  position: fixed;
  margin: 5px;
  color: black;
  font-size: 10px;
  animation: snowfall 300s linear infinite;
  left: calc(100vw * var(--random-x));
  top: calc(100vh * var(--random-y));
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.confetti {
  position: fixed;
  margin: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: snowfall 300s linear infinite;
  left: calc(100vw * var(--random-x));
  top: calc(100vh * var(--random-y));
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

@keyframes snowfall {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

.physics-particle {
  animation: none !important;
  transition: none;
  will-change: transform, left, top;
}

.container {
  display: flex;
  width: 100%;
  overflow-x: hidden;
}

.menu {
  position: fixed;
  height: 100vh;
  padding: 15px 15px 20px 15px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  min-width: 45px;
  width: 190px;
  flex: 0 0 190px;
  overflow-y: auto;
  overflow-x: hidden;
  
}

.content {
  display: none;
  flex-direction: column;
  padding: 15px 15px 100px 200px;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

.category,
.logo,
.item {
  cursor: pointer;
}


.logo {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.logo .bold {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.logo-ornament {
  position: absolute;
  left: -5px;
  transform: none;
  top: -0.3em;
  width: 122px;
  max-width: 122px;
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  max-width: none;
  filter: hue-rotate(0deg) saturate(120%) brightness(1);
  animation: ease-logo-hue 240s linear infinite;
  will-change: filter;
}

@keyframes ease-logo-hue {
  0% {
    filter: hue-rotate(0deg) saturate(120%) brightness(1);
  }
  50% {
    filter: hue-rotate(180deg) saturate(135%) brightness(1.05);
  }
  100% {
    filter: hue-rotate(360deg) saturate(120%) brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-ornament {
    animation: none;
  }
}

.item-list {
  display: none;
  padding-left: 10px;
}

.item {
  position: relative;
  transition: opacity 0.2s ease;
}

.item::before {
  content: "";
  position: absolute;
  left: -10px;
  visibility: hidden;
  transition: visibility 0.2s ease;
}

.item:hover::before {
  content: ">";
  visibility: visible;
}

.item.selected::before {
  content: ">";
  visibility: visible;
}

.item.bold-font {
  font-family: "font2", monospace;
  font-weight: medium;
}

@media (max-width: 768px) {
  .item.selected::before {
    content: ">";
    visibility: visible;
  }

  .item:active::before {
    content: ">";
    visibility: visible;
  }

  .item[data-just-closed]::before,
  .item[data-just-closed]:active::before,
  .item[data-just-closed]:hover::before {
    content: "" !important;
    visibility: hidden !important;
    display: none !important;
    opacity: 0 !important;
  }

  .item[data-just-closed] {
    pointer-events: none !important;
  }

  #music-control {
    left: 15px;
  }

}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.product-image,
.process-image {
  width: 100%;
  display: block;
  max-width: 100%;
    border: none;
      border-radius: 3px;
}

.process-btn {
  text-decoration: none;
  width: auto;
  min-width: 60px;
  height: 18px;
  border: none;
  background-color: transparent;
  display: inline-block;
  text-align: center;
  padding: 0 3px;
  line-height: 16px;
  border-radius: 3px;
  outline: none;
  color: gray;
  font-size: 10pt;
  font-family: "font", sans-serif;
  appearance: none;
  margin-top: 15px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}

.process-btn:hover {
  color: white;
}

.process-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 18px;
  background-color: #efefef;
  border-radius: 3px;
  pointer-events: none;
  z-index: -1;
}

.process-btn:hover::before {
  background-color: black;
}

.process-btn.rotate,
.process-btn.rotate:hover {
  color: white;
}

.process-btn.rotate::before,
.process-btn.rotate:hover::before {
  background-color: black;
}

.process-content {
  display: none;
  margin-top: 10px;
  margin-bottom: 30px;
}

.process-content img.process-image,
.process-content iframe.process-image {
  max-width: 100%;
}

.process-content iframe.process-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 2px;
  max-width: 100%;
  box-sizing: border-box;
}

.content-btn {
  text-decoration: none;
  width: auto;
  min-width: 60px;
  height: 18px;
  border: none;
  background-color: transparent;
  display: inline-block;
  text-align: center;
  padding: 0 3px;
  line-height: 16px;
  border-radius: 3px;
  outline: none;
  color: gray;
  font-size: 10pt;
  font-family: "font", sans-serif;
  appearance: none;
  margin-top: 15px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}

.content-btn:hover {
  color: white;
}

.content-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 18px;
  background-color: #efefef;
  border-radius: 3px;
  pointer-events: none;
  z-index: -1;
}

.content-btn:hover::before {
  background-color: black;
}

.content-btn.rotate,
.content-btn.rotate:hover {
  color: white;
}

.content-btn.rotate::before,
.content-btn.rotate:hover::before {
  background-color: black;
}

.content-content {
  display: none;
  margin-top: 10px;
  margin-bottom: 30px;
}

.content-content img.content-image {
  max-width: 100%;
}

.instagram-link,
.telegram-link {
    color: #6d8f0f;
    text-decoration: none;
  cursor: pointer;
}

.instagram-link:hover,
.telegram-link:hover {
  color: #6d8f0f;
}

#music-control {
  position: fixed;
  bottom: 7px;
  color: #efefef;
  font-size: 10pt;
  z-index: 1001;
}

.slash2,
.slash3,
.arena-link-bottom,
.instagram-link-bottom,
.updates-link-bottom {
  position: fixed;
  bottom: 8px;
  color: gray;
  font-size: 10pt;
  z-index: 1000;
}

.bottom-ticker {
  position: fixed;
  bottom: 7px;
  left: 0;
  right: auto;
  height: 18px;
  line-height: 18px;
  overflow: hidden;
  z-index: 998;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.bottom-ticker.visible {
  opacity: 1;
}

.bottom-ticker .ticker-track {
  display: inline-block;
  white-space: nowrap;
  color: gray;
  font: 10pt "font", sans-serif;
  animation: bottom-ticker-scroll 25s linear 1;
  animation-fill-mode: forwards;
  will-change: transform;
}

@keyframes bottom-ticker-scroll {
  0% { transform: translateX(var(--ticker-start, 100%)); }
  100% { transform: translateX(var(--ticker-end, -100%)); }
}

.bottom-ticker::before,
.bottom-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: 1;
}

.bottom-ticker::before {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.bottom-ticker::after {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.instagram-link-bottom:hover,
.updates-link-bottom:hover,
.arena-link-bottom:hover {
  color: #6d8f0f;
}

#music-control {
  left: 15px;
}

#music-toggle {
  color: transparent;
  font-size: 0;
}

.music-note {
  font-size: 10pt;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: gray;
}

.slash2 {
  right: 76px;
}

.slash3 {
  right: 144px;
}

.instagram-link-bottom,
.arena-link-bottom,
.updates-link-bottom {
  text-decoration: none;
}

.instagram-link-bottom {
  right: 158px;
}

.arena-link-bottom {
  right: 90px;
}

.updates-link-bottom {
  right: 15px;
}

#music-toggle {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: none;
  background: #efefef;
  cursor: pointer;
  position: relative;
  margin: 0;
  border-radius: 2px;
  padding: 0;
  outline: none;
}

#music-toggle.active {
  background-color: #000;
}

#music-toggle.active .music-note {
  color: #fff;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  inset: 0;
  background: #fff;
  justify-content: center;
  align-items: center;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.3s ease;
}

.modal-content {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  display: block;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: center center;
  transition: transform 0.3s ease-out;
  -webkit-transition: -webkit-transform 0.3s ease-out;
}

.modal-content.zoomed {
  transform: scale(2);
  -webkit-transform: scale(2);
  transition: transform 0.3s ease;
}

.close {
  position: fixed;
  top: 15px;
  right: 15px;
  color: #000;
  font-size: 10pt;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1002;
  background: #fff;
}

.close:hover {
  color: gray;
}

#about > p:first-child {
  position: relative;
}

@keyframes noteFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-70px) translateX(var(--drift, 0px)) scale(1.1);
    opacity: 0;
  }
}

.floating-note {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  color: gray;
  font-size: 12px;
  line-height: 1;
  z-index: 1000;
  will-change: transform, opacity;
  animation-name: noteFloat;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.dotwork-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 17px;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: auto;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  min-height: 100vh;
}

.dotwork-upload {
  margin-bottom: 7px;
}

.upload-label {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #000;
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.3s;
  text-transform: lowercase;
}

.upload-label:hover {
  background-color: #000000;
  color: white;
}

#image-upload {
  display: none;
}

.dotwork-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0px 0;
  width: 100%;
  max-width: 400px;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.preview-canvas {
  width: 100%;
  height: auto;
  max-width: 400px;
  border: 1px solid gray;
  box-sizing: border-box;
}

.dotwork-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  touch-action: none;
  width: 100%;
  box-sizing: border-box;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 5px;
}

.label-container {
  display: flex;
  justify-content: space-between;
}

.model-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-group label {
  text-align: left;
}

.control-group span {
  text-align: right;
}

.control-group input[type="range"] {
  width: 100%;
  height: 1px;
  -webkit-appearance: none;
  background: #000;
  border-radius: 0;
  cursor: pointer;
  margin: 0;
  touch-action: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  background: #000;
  border: none;
  border-radius: 0;
}

.control-group input[type="range"]::-moz-range-track {
  height: 1px;
  background: #000;
  border-radius: 0;
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 8px;
  height: 8px;
  background: #000;
  border: none;
  border-radius: 0;
}

.control-group input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  border-radius: 0;
}

.control-group input[type="checkbox"]:checked {
  background-color: #000;
}

.control-group input[type="checkbox"]:checked:after {
  content: none;
}

.model-selector {
  display: flex;
  gap: 10px;
  margin: 3px 0;
  justify-content: flex-end;
}

.model-option {
  position: relative;
}

.model-option input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  border-radius: 0;
}

.model-option input[type="radio"]:checked {
  background-color: #000;
}

.model-option label {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: none;
  color: #000;
  font: 10pt "font", sans-serif;
}

.model-option input[type="radio"]:checked + label {
  color: #fff;
}

.style-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 3px 0;
}

.style-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
}

.style-item label {
  font: 10pt "font", sans-serif;
  text-transform: lowercase;
  cursor: pointer;
}

.download-buttons {
  display: flex;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
  max-width: 100%;
  text-transform: lowercase;
}

.dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  background-color: #fff;
  border: 1px solid #000;
  border-top: none;
  z-index: 100;
  box-sizing: border-box;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-divider {
  height: 1px;
  background-color: #000;
  margin: 0;
}

.dropdown-content a {
  color: black;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  text-align: center;
  text-transform: lowercase;
  font: 10pt "font", sans-serif;
  box-sizing: border-box;
}

.dropdown-content a:hover {
  background-color: #000000;
  color: white;
}

.dotwork-button {
  padding: 8px 16px;
  background: white;
  color: black;
  border: 1px solid #000;
  cursor: pointer;
  font: 10pt "font", sans-serif;
  text-transform: lowercase;
  transition: background-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.dotwork-button:hover {
  background-color: #ffffff;
}

.dotwork-button:disabled {
  background-color: #ccc;
  border: 1px solid #999;
  color: #666;
  cursor: not-allowed;
}

@media (max-width: 1440px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .menu {
    min-width: 45px;
    width: 170px;
    flex: 0 0 170px;
    max-width: none;
    padding: 15px 15px 20px 15px;
  }

  #music-control {
    left: 15px;
  }

  .content {
    padding: 15px 15px 0 160px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .dotwork-preview {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .image-container {
    width: 100%;
    max-width: 100%;
  }

  .preview-canvas {
    border: 1px solid gray;
    max-width: 100%;
  }

  .dotwork-controls {
    width: 100%;
    max-width: 100%;
  }

  #peace-tshirt-text {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .process-content iframe.process-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-width: 100%;
    border-radius: 2px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  #music-control {
    left: 15px;
  }

  .process-content iframe.process-image {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 2px;
    margin: 0;
  }
}

.product-section {
  min-height: calc(100vh - 120px);
  padding-bottom: 30px;
}

@media screen and (max-width: 480px) {
  #visitors-control {
    bottom: 5px;
    left: 10px;
    font-size: 10pt;
  }

  #visitor-counter {
    min-width: 25px;
    height: 14px;
    font-size: 10pt;
  }
}

#support-button {
  text-decoration: none;
  width: auto;
  min-width: 60px;
  height: 18px;
  border: none;
  background-color: #efefef;
  display: inline-block;
  text-align: center;
  padding: 0 3px;
  line-height: 16px;
  border-radius: 3px;
  outline: none;
  color: gray;
  font-size: 10pt;
  appearance: none;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  top: 0;
}

#support-button:hover {
  background-color: black;
  color: white;
}

.support-button,
.order-button,
.send-button {
  text-decoration: none;
  width: auto;
  min-width: 60px;
  height: 18px;
  border: none;
  background-color: #efefef;
  display: inline-block;
  text-align: center;
  padding: 0 3px;
  line-height: 16px;
  border-radius: 3px;
  outline: none;
  color: gray;
  font-size: 10pt;
  font-family: "font", sans-serif;
  font-weight: normal;
  appearance: none;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
  top: 0;
}

.order-button,
.send-button {
  min-width: 45px;
}

.support-button:hover,
.order-button:hover,
.send-button:hover {
  background-color: black;
  color: white;
}

.files-instruction-btn {
   text-decoration: none;
  width: auto;
  min-width: 60px;
  height: 18px;
  border: none;
  background-color: transparent;
  display: inline-block;
  text-align: center;
  padding: 0 3px;
  line-height: 16px;
  border-radius: 3px;
  outline: none;
  color: gray;
  font-size: 10pt;
  font-family: "font", sans-serif;
  appearance: none;
  margin-top: 15px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.2s, color 0.2s;
  position: relative;
}

.files-instruction-btn:hover {
  color: white;
}

.files-instruction-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  height: 18px;
  background-color: #efefef;
  border-radius: 3px;
  pointer-events: none;
  z-index: -1;
}

.files-instruction-btn:hover::before {
  background-color: black;
}

.files-instruction-btn.rotate,
.files-instruction-btn.rotate:hover {
  color: white;
}

.files-instruction-btn.rotate::before,
.files-instruction-btn.rotate:hover::before {
  background-color: black;
}

.files-instruction-content {
  display: none;
  margin-top: 10px;
  margin-bottom: 30px;
}

.pdf-files {
  display: block;
  margin: 0 0 10px 0;
}

.pdf-link {
  text-decoration: none;
  color: inherit;
  font: 10pt "font", sans-serif;
  display: inline;
  padding: 0;
  line-height: inherit;
  border: none;
  background: none;
}

.pdf-link:hover {
  text-decoration: underline;
}

.instruction-blocks {
  display: flex;
  flex-direction: column;

}

.instruction-block {
  display: flex;
  flex-direction: column;
}

.instruction-block img {
  width: 100%;
  max-width: 100%;
  display: block;
  border: none;
  border-radius: 3px;
}

.instruction-block p {
  margin: 0 0 18px 0;
}

.instruction-block p::first-letter {
  font-family: "font2", monospace;
}

.instruction-block.two-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.instruction-block.two-images p {
  grid-column: 1 / -1;
}

@media (max-width: 767px) {
  .instruction-block.two-images {
    grid-template-columns: 1fr;
  }

}

.about-ease-diagram {
  width: 60%;
  height: auto;
  display: block;
}

.about-ease {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 20px 0;
}

.about-ease-label {
  position: absolute;
  font-family: "font", monospace;
  text-transform: lowercase;
  font-size: 10pt;
  color: #000;
}

.about-ease-top { left: 50%; top: -8px; transform: translateX(-50%); }
.about-ease-bottom { left: 50%; bottom: -8px; transform: translateX(-50%); }
.about-ease-left { left: -4px; top: 50%; transform: translateY(-50%); }
.about-ease-right { right: -4px; top: 50%; transform: translateY(-50%); }

@media (max-width: 480px) {
  .about-ease { max-width: 100%; }
  .about-ease-label { font-size: 9pt; }
  .about-ease-top { top: -4px; }
  .about-ease-bottom { bottom: -4px; }
  .about-ease-left { left: 0; }
  .about-ease-right { right: 0; }
}
@media (max-width: 767px) {
  .about-ease-diagram { width: 100%; }
}

.show-all-wrapper {
  margin-top: 15px;
}

.show-all-btn {
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
  color: gray;
  font-size: 10pt;
}

.show-all-wrapper:hover .show-all-btn,
.show-all-btn:hover {
  opacity: 1;
  color: black;
}

.gallery-link {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#gallery-all .image-grid {
  gap: 10px;
}

#gallery-all .gallery-link {
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#gallery-all .flip-card {
  position: relative;
  perspective: 1000px;
  cursor: pointer;
}

#gallery-all .flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

#gallery-all .flip-card:hover .flip-inner,
#gallery-all .flip-card:focus-within .flip-inner {
  transform: rotateY(180deg);
}

#gallery-all .flip-front,
#gallery-all .flip-back {
  border-radius: 3px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#gallery-all .flip-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

#gallery-all .flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #ffffff;
  color: #000000;
  text-align: left;
  font: 10pt "font", sans-serif;
  text-transform: lowercase;
  transform: rotateY(180deg);
  overflow: auto;
  line-height: 1.35;
}

#gallery-all .flip-back-title {
  width: auto;
}

#gallery-all .flip-back-desc {
  margin-top: 8px;
  width: auto;
}

@media (max-width: 1024px) {
  #gallery-all .gallery-link {
    height: 200px;
  }
}

@media (max-width: 767px) {
  #gallery-all .gallery-link {
    height: 180px;
  }
}

@media (max-width: 480px) {
  #gallery-all .gallery-link {
    height: 150px;
  }
}

@media (max-width: 767px) {
  .show-all-btn {
    opacity: 0;
    pointer-events: none;
  }
}

