.poster-grid-window {
  min-width: 360px;
}

.poster-grid-app {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px;
  background: #c0c0c0;
  overflow: hidden;
}

.poster-grid-app__shell {
  height: 100%;
  padding: 26px;
  background: #ffffff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  overflow: auto;
}

.poster-grid-app__grid {
  width: min(100%, 980px);
  min-height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  gap: 26px 30px;
  align-items: start;
  background: #ffffff;
}

.poster-grid-app__cell {
  position: relative;
  aspect-ratio: 2 / 3;
  min-width: 0;
  min-height: 0;
  background: #ffffff;
  border: 0;
  overflow: hidden;
}

.poster-grid-app__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

@media (max-width: 768px) {
  .poster-grid-window {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: min(520px, calc(100dvh - var(--taskbar-height) - 16px)) !important;
  }

  .poster-grid-app {
    padding: 6px;
  }

  .poster-grid-app__shell {
    padding: 14px;
  }

  .poster-grid-app__grid {
    gap: 14px 16px;
  }
}

@media (max-width: 480px) {
  .poster-grid-app__shell {
    padding: 10px;
  }

  .poster-grid-app__grid {
    gap: 10px 12px;
  }
}
