/* =========================================================
   8. SECTION VERTICALS
   ========================================================= */
.el-pubs {
  border-top: 1px solid #ecf14f;
  box-shadow: 0 0 6px #644915;
  padding: 30px 0;
  margin-top: 30px;
}

.el-pubs .el-pubs-list {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.el-pubs .el-pubs-carousel {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 380px;
  margin: 0 auto;
}

.el-pubs .el-cover {
  position: absolute;
  cursor: pointer;

  overflow: hidden;
  padding: 3px;
  border: 3px solid #fff;

  box-sizing: border-box;

  box-shadow:
    inset 0 0 20px #dedfffe8,
    0 5px 10px #00000017,
    0 2px 5px rgba(0, 0, 0, 0.98);

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.el-pubs .el-cover a {
  display: block;
}

.el-pubs .el-cover img {
  display: block;
  width: 100%;
  height: auto;

  border: 1px solid #eee0e0;
  box-shadow: 0 0 3px 1px #181a19;
}


/* =========================================================
   LARGE DESKTOP: 1200px+
   ========================================================= */

@media (min-width: 1200px) {

  .el-pubs .el-cover:nth-child(1) {
    width: 240px;
    top: 30px;
    left: -70px;
    filter: brightness(0.7);
    z-index: 1;
    transform: scale(0.75);
  }

  .el-pubs .el-cover:nth-child(2) {
    width: 260px;
    top: 10px;
    left: 120px;
    filter: brightness(0.85);
    z-index: 2;
    transform: scale(0.85);
  }

  .el-pubs .el-cover:nth-child(3) {
    width: 280px;
    top: 0;
    left: 340px;
    filter: brightness(1);
    z-index: 5;
  }

  .el-pubs .el-cover:nth-child(4) {
    width: 260px;
    top: 10px;
    left: 590px;
    filter: brightness(0.85);
    z-index: 2;
    transform: scale(0.85);
  }

  .el-pubs .el-cover:nth-child(5) {
    width: 240px;
    top: 30px;
    left: 800px;
    filter: brightness(0.7);
    z-index: 1;
    transform: scale(0.75);
  }

  .el-pubs .el-cover:hover {
    z-index: 10;
    filter: brightness(1);
    transform: scale(1.1);
  }
}


/* =========================================================
   SMALL DESKTOP / LARGE TABLET: 900px–1199px
   ========================================================= */

@media (min-width: 900px) and (max-width: 1199.98px) {

  .el-pubs .el-pubs-carousel {
    max-width: 900px;
    height: 330px;
  }

  .el-pubs .el-cover:nth-child(1) {
    width: 200px;
    top: 30px;
    left: -2%;
    filter: brightness(0.7);
    z-index: 1;
    transform: scale(0.75);
  }

  .el-pubs .el-cover:nth-child(2) {
    width: 220px;
    top: 15px;
    left: 16%;
    filter: brightness(0.85);
    z-index: 2;
    transform: scale(0.85);
  }

  .el-pubs .el-cover:nth-child(3) {
    width: 240px;
    top: 0;
    left: 50%;
    filter: brightness(1);
    z-index: 5;
    transform: translateX(-50%);
  }

  .el-pubs .el-cover:nth-child(4) {
    width: 220px;
    top: 15px;
    right: 16%;
    left: auto;
    filter: brightness(0.85);
    z-index: 2;
    transform: scale(0.85);
  }

  .el-pubs .el-cover:nth-child(5) {
    width: 200px;
    top: 30px;
    right: -2%;
    left: auto;
    filter: brightness(0.7);
    z-index: 1;
    transform: scale(0.75);
  }
}


/* =========================================================
   TABLET / MOBILE: BELOW 900px
   ========================================================= */

@media (max-width: 899.98px) {

  .el-pubs {
    padding: 20px 0;
  }

  .el-pubs .el-pubs-list {
    overflow: visible;
    padding: 20px 0;
  }

  .el-pubs .el-pubs-carousel {
    position: static;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;

    gap: 20px;

    width: 100%;
    max-width: none;
    height: auto;
  }

  .el-pubs .el-cover {
    position: relative;

    top: auto;
    right: auto;
    bottom: auto;
    left: auto;

    flex: 0 0 150px;
    width: 150px;
    height: auto;

    filter: none;
    transform: none;
    z-index: auto;
  }
}

