.section-gallery {
  padding: 6rem 0;
}
.section-gallery .container .content {
  margin-bottom: 2rem;
}
.section-gallery .container .content *:is(h1, h2) {
  font-size: 2.6em;
  margin: 0 auto 1rem;
}
.section-gallery .container .content .description {
  margin: 0 auto 1rem;
  font-weight: 300;
  opacity: 0.75;
}
.section-gallery .container .content .description *:last-child {
  margin-bottom: 0;
}

/*

Galleries

*/
.section-gallery .galleries {
  max-width: 1400px;
  margin: 0 auto;
}
.section-gallery .galleries .gallery {
  display: flex;
  justify-content: center;
}
.section-gallery .galleries .gallery .content {
  width: 33.3%;
  padding: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border: 20px solid #f2f2f2;
  text-align: right;
}
.section-gallery .galleries .gallery .content p {
  line-height: 1.5em;
}
.section-gallery .galleries .gallery .content p.open-gallery {
  cursor: pointer;
  font-weight: 500;
  border-bottom: 2px solid #f2f2f2;
  display: inline-block;
  padding-bottom: 10px;
  color: var(--secondary);
  transition: all 0.2s;
}
.section-gallery .galleries .gallery .content p.open-gallery svg {
  width: 12px;
  height: 12px;
}
.section-gallery .galleries .gallery .content p.open-gallery svg path {
  transition: all 0.2s;
}
.section-gallery .galleries .gallery .content p.open-gallery:hover {
  border-bottom: 2px solid rgba(var(--secondary-rgb), 0.5);
}
.section-gallery .galleries .gallery .content p.open-gallery:hover svg path {
  fill: var(--secondary);
}
.section-gallery .galleries .gallery .content *:first-child {
  margin-top: 0;
}
.section-gallery .galleries .gallery .content *:last-child {
  margin-bottom: 0;
}
.section-gallery .galleries .gallery .images {
  display: flex;
  width: 100%;
}
.section-gallery .galleries .gallery .images .image {
  width: 50%;
  background-color: var(--black);
}
.section-gallery .galleries .gallery .images .image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  transition: all 0.3s;
  cursor: pointer;
}
.section-gallery .galleries .gallery .images .image:hover img {
  opacity: 0.75;
}
.section-gallery .galleries .gallery:has(.content) .images {
  width: 66.6%;
}
.section-gallery .galleries .gallery .all-images {
  display: none;
}
.section-gallery .galleries .gallery:nth-child(2n) {
  flex-direction: row-reverse;
}
.section-gallery .galleries .gallery:nth-child(2n) .content {
  justify-content: flex-start;
  text-align: left;
}

@media (max-width: 900px) {
  .section-gallery .galleries .gallery .content {
    width: 50%;
    border: 10px solid #f2f2f2;
  }
  .section-gallery .galleries .gallery .images .image {
    width: 100%;
  }
  .section-gallery .galleries .gallery .images .image:nth-child(2) {
    display: none;
  }
  .section-gallery .galleries .gallery:has(.content) .images {
    width: 50%;
  }
}
/*

Buttons

*/
.section-gallery .container .content .buttons {
  margin: 1rem auto 2rem;
  width: -moz-max-content;
  width: max-content;
}

/*

Lightbox

*/
.section-gallery .lightbox-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: all 1s;
}
.section-gallery .lightbox-gallery svg {
  position: absolute;
  cursor: pointer;
  width: 30px;
  height: 30px;
}
.section-gallery .lightbox-gallery svg path {
  fill: var(--white);
}
.section-gallery .lightbox-gallery svg.close {
  top: 0;
  right: 0;
  margin: 10px 20px;
}
.section-gallery .lightbox-gallery svg.right {
  top: 50%;
  right: 0;
  margin-right: 20px;
}
.section-gallery .lightbox-gallery svg.left {
  top: 50%;
  left: 0;
  margin-left: 20px;
}
.section-gallery .lightbox-gallery .images {
  width: 90%;
  height: 90%;
  align-items: center;
  justify-content: center;
  position: relative;
  display: none;
}
.section-gallery .lightbox-gallery .images img {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  max-width: 100%;
  max-height: 100%;
  transition: all 0.5s;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.section-gallery .lightbox-gallery .images img.active {
  visibility: visible;
  opacity: 1;
}
.section-gallery .lightbox-gallery .content {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.section-gallery .lightbox-gallery .content .inner {
  max-width: 700px;
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: 10px 30px;
  text-align: center;
  margin-bottom: 20px;
  border-radius: 5px;
}
.section-gallery .lightbox-gallery .content .inner *:first-child {
  margin-top: 0;
}
.section-gallery .lightbox-gallery .content .inner *:last-child {
  margin-bottom: 0;
}
.section-gallery .lightbox-gallery.active {
  visibility: visible;
  opacity: 1;
}
.section-gallery .lightbox-gallery.active .images {
  display: flex;
}

/*

Options

*/
.section-gallery[options~=image-1] .galleries .gallery .images .image {
  width: 100%;
}
.section-gallery[options~=image-1] .galleries .gallery .images .image:nth-child(2) {
  display: none;
}

.section-gallery[options~=image-3] .galleries .gallery .images .image {
  width: 100%;
}
.section-gallery[options~=image-3] .galleries .gallery .images .image:nth-child(2) {
  display: none;
}

.section-gallery[options~=aspect-1-1] .galleries .gallery .images .image {
  aspect-ratio: 1;
}

.section-gallery[options~=aspect-15-1] .galleries .gallery .images .image {
  aspect-ratio: 1.5/1;
}

.section-gallery[options~=aspect-2-1] .galleries .gallery .images .image {
  aspect-ratio: 2/1;
}