/*
 Theme Name:   Artpop Pro Child Theme
 Theme URI:    https://www.designlabthemes.com/artpop-pro-wordpress-theme/
 Description:  Artpop Pro Child Theme
 Author:       Design Lab
 Author URI:   https://www.designlabthemes.com/
 Template:     artpop-pro
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  artpop-pro-child
*/


/* =Theme customization starts here
-------------------------------------------------------------- */
/* =========================================
   ARCHIVE / MAGAZINE LAYOUT
========================================= */

.magazine-archive {
  max-width: 1480px;
  margin: 0 auto;
  padding: 60px 40px;
}

.magazine-archive-header {
  text-align: center;
  margin-bottom: 60px;
}

.magazine-archive-header h1 {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.1;
}

.archive-description {
  max-width: 680px;
  margin: 0 auto;
  color: #777;
  font-size: 17px;
  line-height: 1.7;
}

/* =========================================
   TOP 5 MAGAZINE POSTS
========================================= */

.magazine-top-five {
  display: grid;
  grid-template-columns: 1fr 2.4fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 90px;
}

.magazine-card-1 {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.magazine-card-2 {
  grid-column: 1;
  grid-row: 1;
}

.magazine-card-3 {
  grid-column: 3;
  grid-row: 1;
}

.magazine-card-4 {
  grid-column: 1;
  grid-row: 2;
}

.magazine-card-5 {
  grid-column: 3;
  grid-row: 2;
}

.magazine-card a,
.archive-feed-feature a,
.most-read-small a,
.archive-extra-card a {
  color: inherit;
  text-decoration: none;
}

.magazine-image img,
.archive-extra-card img {
  width: 100%;
  height: auto;
  display: block;
}

.magazine-content {
  background: #fff;
  padding-top: 20px;
}

.magazine-card-1 .magazine-content {
  width: 86%;
  margin: -42px auto 0;
  padding: 34px;
  position: relative;
  background: #fff;
}

.magazine-meta {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 12px;
}

/* HERO */

.magazine-card-1 h2 {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 400;
  margin: 0;
}

/* SMALL TOP POSTS */

.magazine-card h2 {
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}

.magazine-card p {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}

/* =========================================
   FEATURED + MOST READ
========================================= */

.archive-lower-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 40px 0 0;
  align-items: start;
  width: 100%;
}

.archive-feed-feature img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}

.archive-feed-feature-content {
  background: #fff;
  width: 92%;
  margin: -16px auto 0;
  padding: 16px;
  position: relative;
}

.archive-feed-feature-content span {
  color: #ff9bd2;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.archive-feed-feature-content h2 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 400;
  margin: 8px 0;
}

.archive-feed-feature-content p {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* =========================================
   MOST READ
========================================= */

.most-read-sidebar h2 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  margin-bottom: 18px;
}

.most-read-small {
  border-bottom: 1px solid #eee;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.most-read-small a {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
}

.most-read-small img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.most-read-small h3 {
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 4px;
}

.most-read-small span {
  color: #aaa;
  font-size: 11px;
}

/* =========================================
   EXTRA GRID
========================================= */

.archive-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 90px;
}

.archive-extra-card img {
  margin-bottom: 18px;
}

.archive-extra-content {
  padding-top: 16px;
}

.archive-extra-content span {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 10px;
}

.archive-extra-card h3 {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}

/* =========================================
   BOTTOM CATEGORY TEXT
========================================= */

.archive-bottom-text {
  max-width: 820px;
  margin: 90px auto 0;
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.archive-bottom-text h2,
.archive-bottom-text h3 {
  font-weight: 400;
  line-height: 1.25;
  margin: 34px 0 14px;
}

.archive-bottom-text p {
  margin-bottom: 18px;
}

/* =========================================
   RELATED POSTS SINGLE
========================================= */

.single-related-posts {
  max-width: 1180px;
  margin: 70px auto 50px;
  padding: 0 40px;
  clear: both;
}

.single-related-posts h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 34px;
}

.single-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.single-related-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.single-related-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.single-related-content {
  padding-top: 14px;
}

.single-related-content span {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 8px;
}

.single-related-content h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}

/* =========================================
   PAGINATION
========================================= */

.magazine-pagination {
  margin-top: 70px;
  text-align: center;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  .magazine-top-five,
  .archive-lower-layout,
  .archive-extra-grid {
    grid-template-columns: 1fr;
  }

  .single-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .magazine-card-1,
  .magazine-card-2,
  .magazine-card-3,
  .magazine-card-4,
  .magazine-card-5 {
    grid-column: auto;
    grid-row: auto;
  }

  .magazine-card-1 .magazine-content,
  .archive-feed-feature-content {
    width: 100%;
    margin: 0;
    padding: 22px 0 0;
  }

  .archive-feed-feature img {
    max-height: none;
  }

  .single-related-image img {
    height: 220px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .magazine-archive {
    padding: 40px 20px;
  }

  .single-related-posts {
    padding: 0 20px;
    margin: 50px auto 40px;
  }

  .single-related-posts h2 {
    text-align: left;
    font-size: 24px;
  }

  .single-related-grid {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .single-related-card {
    min-width: 78%;
    scroll-snap-align: start;
  }

  .single-related-image img {
    height: 210px;
  }

  .single-related-content h3 {
    font-size: 18px;
  }

  .most-read-small a {
    grid-template-columns: 70px 1fr;
  }

  .most-read-small img {
    width: 70px;
    height: 70px;
  }
}