*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: #1c1c1c;
}

body {
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  padding: 48px 32px 40px 40px;
  overflow: auto;
  background: #fff;
}

.logo-link {
  display: block;
  width: 104px;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  margin-top: 64px;
}

.nav a {
  display: block;
  margin: 0 0 12px;
  color: #1c1c1c;
  font-size: 17px;
  font-style: italic;
  line-height: 1.35;
  text-decoration: none;
}

.nav a:hover {
  opacity: 0.45;
}

.nav a[aria-current="page"] {
  opacity: 1;
}

.subscribe-form {
  display: flex;
  align-items: stretch;
  width: min(460px, 100%);
  margin-top: 28px;
  overflow: hidden;
  border: 2px solid #f4c2c8;
  border-radius: 999px;
  background: #f2f2f2;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #1c1c1c;
  font-family: inherit;
  font-size: 16px;
}

.subscribe-form input[type="email"]:focus {
  outline: none;
}

.subscribe-form button {
  margin: 0;
  padding: 12px 22px;
  border: 0;
  background: #f4c2c8;
  color: #1c1c1c;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.subscribe-form button:hover {
  background: #eeb6be;
}

.gallery {
  column-count: 3;
  column-gap: 18px;
  margin-left: 240px;
  padding: 40px 32px 72px 20px;
}

.shot {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery > .shot,
.gallery > .shot.size-s,
.gallery > .shot.size-m,
.gallery > .shot.size-l,
.gallery > .shot.size-scan1,
.gallery > .shot.size-duck {
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
}

.gallery > .shot.size-kucica {
  width: 80%;
}

.trio {
  column-span: all;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 18px;
}

.shot.size-equal {
  width: 300px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.about {
  margin-left: 240px;
  max-width: 720px;
  padding: 48px 48px 80px 36px;
}

.about-photo {
  display: block;
  width: min(340px, 100%);
  height: auto;
  margin: 0 0 28px;
}

.about p,
.about a {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
}

.about p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
}

.about a {
  color: inherit;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: #fff;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  width: auto;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c1c1c;
  font-family: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus {
  outline: none;
}

.lightbox-close:focus-visible {
  outline: 1px solid #1c1c1c;
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: auto;
    height: auto;
    padding: 28px 24px 4px;
  }

  .nav {
    margin-top: 28px;
  }

  .gallery,
  .about {
    margin-left: 0;
    padding: 8px 24px 48px;
  }

  .gallery {
    column-count: 1;
  }

  .shot.size-equal {
    width: min(300px, 100%);
  }

  .lightbox {
    padding: 56px 16px 24px;
  }
}
