/*
 * Basic-Oleg 2027 (wide): loaded after styles/oleg.css and common.css on every page.
 * Desktop: content up to 1080px wide. Phones (max-width 760px): menu folds into a button.
 * Written 2026-11-22.
 */

/* ---------- layout ---------- */
#main {
  width: auto;
  max-width: 1080px;
  padding: 20px 30px 60px;
  box-sizing: border-box;
}
#credit {
  width: auto;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
}
#gallerytitle {
  margin-bottom: 12px;
}
#gallerytitle h2 {
  margin: 1.5rem 0 0.5rem;
}
#galleryDescription {
  font-size: 1.4rem;
  color: #8a8c90;
  margin: 0 0 1rem;
}
.menu-toggle {
  display: none;
}
.menu-toggle:hover, .menu-toggle:focus {
  background: none; /* override button:hover of common.css */
  color: #7B93D3;
  outline: none;
}

/* ---------- home: album tiles ----------
   Two columns as on the old site (Jamila's wish): album title above a square picture.
   Tiles are 330px (the cached size of the album thumbnails), the last single tile is centred. */
#albums.album-tiles {
  width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 50px;
  row-gap: 36px;
  max-width: 710px;
  margin: 30px auto 0;
}
.album-tiles .album-tile {
  width: 330px;
}
.album-tile a {
  display: block;
  text-decoration: none;
}
.album-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.album-tile-title {
  display: block;
  margin-bottom: 12px;
  font-family: "Poiret One", cursive;
  font-size: 2rem;
  color: #d0d1d3;
}
.album-tile a:hover img {
  opacity: 0.88;
}
.album-tile a:hover .album-tile-title {
  color: #7B93D3;
}

/* ---------- home: carousel ---------- */
.carousel {
  position: relative;
  margin: 26px 0 0;
}
.car-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar {
  display: none;
}
.car-track figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  display: table; /* caption as wide as the picture, centred under it */
}
.car-track img {
  display: block;
  height: 380px;
  width: auto;
}
.car-track figcaption {
  display: table-caption;
  caption-side: bottom;
  font-family: "Poiret One", cursive;
  font-size: 1.2rem;
  color: #d0d1d3;
  padding-top: 8px;
}
.car-track figcaption small {
  display: block;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  color: #8a8c90;
  margin-top: 2px;
}
/* arrows: grey triangles as in the viewer (variant E), outside the strip */
.car-arrow {
  position: absolute;
  top: 190px;
  margin-top: -24px;
  width: 26px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(230, 230, 230, 0.45);
  cursor: pointer;
}
.car-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  margin-top: -11px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.car-prev {
  left: -30px;
}
.car-prev::before {
  right: 6px;
  border-right: 15px solid currentColor;
}
.car-next {
  right: -30px;
}
.car-next::before {
  left: 6px;
  border-left: 15px solid currentColor;
}
.car-arrow:hover, .car-arrow:focus {
  color: #fff;
  background: none; /* common.css gives every button:hover a light-blue box */
  border: 0;
  outline: none;
}

/* ---------- album page ---------- */
.album-head h2 {
  font-size: 2.6rem;
  margin: 1.2rem 0 0.5rem;
}
.album-head #breadcrumb {
  width: auto;
  display: block;
}
#images {
  width: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
#images .image {
  width: auto;
  float: none;
}
#images .imagethumb {
  display: block;
}
#images .imagethumb a {
  padding: 0;
  border: 0;
}
#images .imagethumb img {
  display: block;
  width: 100%;
  height: auto;
}
#images .imagethumb a:hover img {
  opacity: 0.85;
}

/* ---------- artwork page ---------- */
.work-bc {
  text-align: center;
  font-size: 16px;
  margin-top: 14px;
}
.work-bc a {
  color: #B0B2B5;
}
.work-bc a:hover {
  color: #7B93D3;
}
.work-pos {
  color: #6c7080;
}
.work-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 12px 0 16px;
  font-size: 17px;
}
.work-nav a {
  color: #8a8c90;
}
.work-nav a:hover {
  color: #7B93D3;
}
.work-nav .off {
  color: #45484f;
}
.work-nav .work-grid {
  font-size: 22px;
  line-height: 1;
}
#image.work-image {
  border: 0;
  padding: 0;
}
#image.work-image img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
}
.work-info {
  margin: 18px 0 10px;
}
h2.work-title {
  font-family: "Poiret One", cursive;
  font-weight: normal;
  font-size: 30px;
  color: #e0e1e3;
  margin: 0 0 6px;
}
.work-meta {
  font-size: 16px;
  color: #9a9ca2;
  margin-top: 4px;
}
.work-price {
  font-size: 17px;
  color: #d0d1d3;
  margin-top: 10px;
}
.work-sold {
  color: #9a9ca2;
  font-style: italic;
}
.work-ask {
  color: #7B93D3;
  font-size: 15px;
  margin-left: 8px;
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  #main {
    padding: 10px 12px 40px;
  }
  #gallerytitle h2 {
    font-size: 2.2rem;
    margin: 0.8rem 0 0.4rem;
  }
  .menu-toggle {
    display: block;
    width: 100%;
    padding: 6px 0;
    background: none;
    border: 0;
    border-top: 1px solid #4F5973;
    border-bottom: 1px solid #4F5973;
    font-family: "Poiret One", cursive;
    font-size: 20px;
    color: #B0B2B5;
    cursor: pointer;
  }
  #navbar ul {
    display: none;
    border-top: 0;
  }
  #navbar.open ul {
    display: block;
  }
  #navbar ul li {
    display: block;
    margin: 0.4rem 0;
  }
  #albums.album-tiles {
    column-gap: 14px;
    row-gap: 22px;
    margin-top: 20px;
  }
  .album-tiles .album-tile {
    width: calc((100% - 14px) / 2);
  }
  .menu-toggle:hover, .menu-toggle:focus {
    border-top: 1px solid #4F5973;
    border-bottom: 1px solid #4F5973;
  }
  .album-tile-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  .car-track img {
    height: 240px;
  }
  .car-arrow {
    display: none;
  }
  .album-head h2 {
    font-size: 2rem;
  }
  #images {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  h2.work-title {
    font-size: 24px;
  }
  .work-nav {
    gap: 22px;
  }
}
