* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #111;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

button,
input {
  font: inherit;
  font-weight: 400;
}

.priv-shell {
  --priv-edge: clamp(18px, 4vw, 76px);
  --priv-width: 1420px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.priv-header,
.priv-gallery-main,
.priv-footer {
  width: min(
    calc(100% - (2 * var(--priv-edge))),
    var(--priv-width)
  );
  margin-inline: auto;
}

.priv-header {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
}

.priv-logo {
  width: 72px;
  height: 72px;
  display: block;
}

.priv-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.priv-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 29px;
  color: #222;
  font-size: 12px;
  white-space: nowrap;
}

.priv-nav a,
.priv-nav span {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.priv-nav span {
  color: #888;
}

.priv-login-main {
  width: min(
    calc(100% - (2 * var(--priv-edge))),
    460px
  );
  margin: auto;
  padding: 36px 0 100px;
}

.priv-login-card {
  display: grid;
  gap: 20px;
}

.priv-eyebrow,
.priv-login-card h1,
.priv-login-card p {
  margin: 0;
  font-weight: 400;
}

.priv-eyebrow {
  color: #999;
  font-size: 10px;
  letter-spacing: .12em;
}

.priv-login-card h1 {
  font-size: 27px;
}

.priv-login-card p {
  margin-top: -8px;
  color: #666;
  font-size: 13px;
  line-height: 1.55;
}

.priv-login-card label {
  display: grid;
  gap: 8px;
  color: #333;
  font-size: 12px;
}

.priv-login-card input {
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #bbb;
  border-radius: 0;
  outline: 0;
  color: #111;
  background: transparent;
  font-size: 16px;
}

.priv-login-card input:focus {
  border-bottom-color: #111;
}

.priv-login-card button {
  min-height: 46px;
  margin-top: 8px;
  border: 1px solid #111;
  border-radius: 0;
  color: #fff;
  background: #111;
  cursor: pointer;
  font-size: 12px;
}

.priv-error {
  padding: 11px 13px;
  border-left: 2px solid #c40000;
  color: #900;
  background: #fff5f5;
  font-size: 12px;
}

.priv-gallery-main {
  padding: 12px 0 90px;
}

.priv-gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

.priv-gallery-heading h1,
.priv-gallery-heading p {
  margin: 0;
  font-weight: 400;
}

.priv-gallery-heading h1 {
  font-size: 16px;
  text-transform: uppercase;
}

.priv-gallery-heading p {
  color: #888;
  font-size: 11px;
}

.priv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 5vw, 80px) clamp(24px, 3vw, 44px);
}

.priv-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  color: #111;
  text-decoration: none;
  opacity: 0;
  transform: translateY(7px);
  animation: priv-enter .4s ease forwards;
  animation-delay: calc(var(--priv-order, 0) * 35ms);
}

.priv-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #eee;
}

.priv-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,.08);
  pointer-events: none;
}

.priv-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.priv-card:hover img {
  transform: scale(1.024);
}

.priv-card-badge,
.priv-card-type {
  position: absolute;
  z-index: 2;
  bottom: 0;
  min-height: 27px;
  display: flex;
  align-items: center;
  padding-inline: 13px;
  font-size: 11px;
}

.priv-card-badge {
  left: 0;
  color: #fff;
  background: #111;
  letter-spacing: .08em;
}

.priv-card-type {
  right: 0;
  color: #111;
  background: #d8c9ff;
}

.priv-card-title,
.priv-card-detail {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
}

.priv-card-title {
  font-size: 14px;
}

.priv-card-detail {
  color: #888;
  font-size: 11px;
}

.priv-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  color: #777;
  font-size: 13px;
}

.priv-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ececec;
  color: #999;
  font-size: 10px;
}

@keyframes priv-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .priv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .priv-shell {
    --priv-edge: 16px;
  }

  .priv-header {
    min-height: 94px;
    padding-top: 12px;
  }

  .priv-logo {
    width: 48px;
    height: 48px;
  }

  .priv-nav {
    max-width: calc(100vw - 84px);
    gap: 14px;
    padding-top: 15px;
    overflow-x: auto;
    font-size: 10px;
  }

  .priv-login-main {
    padding: 20px 0 70px;
  }

  .priv-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .priv-gallery-main {
    padding-top: 4px;
  }
}
