AltoCode

Perito

HTML


<!-- ============================================ -->
<!--                  Gallery                     -->
<!-- ============================================ -->

<section id="gallery-2250">
    <div class="cs-container">
        <div class="cs-content">
            <span class="cs-topper">SERVIZI</span>
            <h2 class="cs-title">Un team dedicato di fotografi che cattura momenti preziosi a ogni scatto</h2>
            <p class="cs-text">
                Offriamo corsi on-demand e istruttori dal vivo per workshop e supporto. 
                Forniamo inoltre corsi di formazione LIVE con istruttore e formazione in sede.
            </p>
        </div>
        <ul class="cs-card-group">
            <li class="cs-item">
                <a href="" class="cs-link">
                    <div class="cs-wrapper">
                        <span class="cs-header">Foto Ritratto</span>
                        <h3 class="cs-h3">
                            Scatti di Jacky
                            <img class="cs-icon" loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/upper-right-arrow.svg" alt="icona freccia" width="32" height="32">
                        </h3>
                    </div>
                    <picture class="cs-background">
                        <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg" alt="persona" width="352" height="440">
                    </picture>
                </a>
            </li>
            <li class="cs-item cs-shift">
                <a href="" class="cs-link">
                    <div class="cs-wrapper">
                        <span class="cs-header">Foto Ritratto</span>
                        <h3 class="cs-h3">
                            Scatti di Jacky
                            <img class="cs-icon" loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/upper-right-arrow.svg" alt="icona freccia" width="32" height="32">
                        </h3>
                    </div>
                    <picture class="cs-background">
                        <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg" alt="persona" width="352" height="440">
                    </picture>
                </a>
            </li>
            <li class="cs-item">
                <a href="" class="cs-link">
                    <div class="cs-wrapper">
                        <span class="cs-header">Foto Ritratto</span>
                        <h3 class="cs-h3">
                            Scatti di Jacky
                            <img class="cs-icon" loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/upper-right-arrow.svg" alt="icona freccia" width="32" height="32">
                        </h3>
                    </div>
                    <picture class="cs-background">
                        <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg" alt="persona" width="352" height="440">
                    </picture>
                </a>
            </li>
            <li class="cs-item">
                <a href="" class="cs-link">
                    <div class="cs-wrapper">
                        <span class="cs-header">Foto Ritratto</span>
                        <h3 class="cs-h3">
                            Scatti di Jacky
                            <img class="cs-icon" loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/upper-right-arrow.svg" alt="icona freccia" width="32" height="32">
                        </h3>
                    </div>
                    <picture class="cs-background">
                        <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg" alt="persona" width="352" height="440">
                    </picture>
                </a>
            </li>
            <li class="cs-item cs-shift">
                <a href="" class="cs-link">
                    <div class="cs-wrapper">
                        <span class="cs-header">Foto Ritratto</span>
                        <h3 class="cs-h3">
                            Scatti di Jacky
                            <img class="cs-icon" loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/upper-right-arrow.svg" alt="icona freccia" width="32" height="32">
                        </h3>
                    </div>
                    <picture class="cs-background">
                        <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg" alt="persona" width="352" height="440">
                    </picture>
                </a>
            </li>
            <li class="cs-item">
                <a href="" class="cs-link">
                    <div class="cs-wrapper">
                        <span class="cs-header">Foto Ritratto</span>
                        <h3 class="cs-h3">
                            Scatti di Jacky
                            <img class="cs-icon" loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/Icons/upper-right-arrow.svg" alt="icona freccia" width="32" height="32">
                        </h3>
                    </div>
                    <picture class="cs-background">
                        <source media="(max-width: 600px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <source media="(min-width: 601px)" srcset="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg">
                        <img loading="lazy" decoding="async" src="https://csimg.nyc3.cdn.digitaloceanspaces.com/Images/People/wedding1.jpg" alt="persona" width="352" height="440">
                    </picture>
                </a>
            </li>
        </ul>
    </div>
</section>

CSS


/*-- -------------------------- -->
<---          Gallery           -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #gallery-2250 {
    padding: var(--sectionPadding);
    background-color: #FDFAF8;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  #gallery-2250 .cs-container {
    width: 100%;
    max-width: 44rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(3rem, 6vw, 4rem);
  }
  #gallery-2250 .cs-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #gallery-2250 .cs-title {
    max-width: 40ch;
  }
  #gallery-2250 .cs-card-group {
    width: 100%;
    max-width: 31.25rem;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1rem, 1.5vw, 1.25rem);
  }
  #gallery-2250 .cs-item {
    text-align: left;
    list-style: none;
    width: 100%;
    height: 17.5rem;
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    grid-column: span 12;
    grid-row: span 1;
    gap: 0.5rem;
    position: relative;
  }
  #gallery-2250 .cs-item:hover .cs-h3,
  #gallery-2250 .cs-item:focus-within .cs-h3 {
    transform: translateY(0);
  }
  #gallery-2250 .cs-item:hover .cs-fake-link,
  #gallery-2250 .cs-item:focus-within .cs-fake-link {
    height: auto;
    opacity: 1;
    transform: translateY(0);
  }
  #gallery-2250 .cs-item:hover .cs-background:before,
  #gallery-2250 .cs-item:focus-within .cs-background:before {
    height: 180%;
  }
  #gallery-2250 .cs-item:hover .cs-background img,
  #gallery-2250 .cs-item:focus-within .cs-background img {
    opacity: 0.5;
    transform: scale(1.1);
  }
  #gallery-2250 .cs-link {
    text-decoration: none;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
  }
  #gallery-2250 .cs-wrapper {
    width: 100%;
    overflow: hidden;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  #gallery-2250 .cs-header {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2em;
    text-align: inherit;
    margin: 0;
    color: var(--primary);
  }
  #gallery-2250 .cs-h3 {
    font-size: clamp(1.25rem, 2vw, 2.4375rem);
    font-weight: 700;
    line-height: 1.2em;
    text-align: inherit;
    text-decoration: none;
    width: 100%;
    margin: 0;
    padding-right: 3.75rem;
    color: var(--bodyTextColorWhite);
    display: flex;
    justify-content: space-between;
    position: relative;
  }
  #gallery-2250 .cs-icon {
    width: clamp(2.5rem, 4vw, 4rem);
    height: auto;
    display: block;
    position: absolute;
    bottom: 0rem;
    right: 0rem;
    transition: transform 0.3s;
  }
  #gallery-2250 .cs-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #000;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }
  #gallery-2250 .cs-background:before {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 14.59%, rgba(0, 0, 0, 0) 43.18%);
    opacity: 1;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    transition: height 0.3s;
  }
  #gallery-2250 .cs-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: -1;
    transition: transform 0.6s, opacity 0.3s;
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #gallery-2250 .cs-container {
    max-width: 115rem;
  }
  #gallery-2250 .cs-card-group {
    max-width: 100%;
    margin-bottom: clamp(3.75rem, 6vw, 6.25rem);
    grid-template-rows: 1fr;
  }
  #gallery-2250 .cs-item {
    min-height: clamp(17.5rem, 35vw, 27.5rem);
    grid-column: span 4;
  }
  #gallery-2250 .cs-item.cs-shift {
    position: relative;
    top: clamp(3.75rem, 6vw, 6.25rem);
  }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #gallery-2250 .cs-item:hover .cs-wrapper,
  #gallery-2250 .cs-item:focus-within .cs-wrapper {
    opacity: 1;
    transform: translateY(0);
  }
  #gallery-2250 .cs-item:hover .cs-background:before,
  #gallery-2250 .cs-item:focus-within .cs-background:before {
    height: 180%;
  }
  #gallery-2250 .cs-item:hover .cs-background img,
  #gallery-2250 .cs-item:focus-within .cs-background img {
    opacity: 0.5;
    transform: scale(1.1);
  }
  #gallery-2250 .cs-wrapper {
    opacity: 0;
    transform: translateY(5rem);
    transition: transform 0.3s, opacity 0.3s;
  }
}