/*
	Abstracts are helpers, variables and functions
	for scss compliation.
*/
/*
	@TODO: Add to theme: new division fix for updated sass package.
*/
/**==================================================================================================================================
BREAKPOINT
@TODO: remove? What is use case?? either use simple global points or write custom line. why does first breakpoint have to be 0?
 ==================================================================================================================================*/
/**==================================================================================================================================
BREAKPOINT ENDS
==================================================================================================================================*/
span.edit-link {
  display: inline-block;
  background-color: yellow;
  font-weight: 500;
  position: fixed;
  left: 0;
  bottom: 3.125rem;
  transform: translateX(-45px);
  transition: all 0.2s;
}

span.edit-link a {
  display: block;
  padding: 0.9375rem;
}

span.edit-link:hover {
  transform: translateX(0);
}

.grid-container {
  max-width: 70.625rem;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-column-gap: 1.875rem;
}

@media screen and (max-width: 1280px) {
  .grid-container {
    padding: 0 0.9375rem;
  }
}
/*
	Variables for compliation
	NB! Colors should be added to base/config file as css root variable.
*/
/**
 * $size: font-size in number
 * $line-height: line-height in percentage
 * $weight: font-weight
 * $family: font-family
 * $color: font-color
 */
/**
 * Block section background colors.
 * Include the background options ACF fields group to use these.
 */
/*
 * makes ul/ol as a dropdown select (normaly in mobile)
 * Structure: div > title > list > li > a
*/
.post-items-grid {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.6875rem;
}

.post-items-grid .post-item {
  flex: 0 0 50%;
  background-color: var(--color__orange);
  border-radius: var(--element-border-radius-small);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  text-decoration: none;
}

.post-items-grid .post-item:hover .post-item__image img {
  transform: scale(1.02);
}

.post-items-grid .post-item .post-item__heading {
  font-weight: 400;
}

.post-items-grid .post-item .post-item__box {
  padding: var(--element-box-padding-small);
  display: flex;
  flex-flow: row wrap;
  width: 100%;
}

.post-items-grid .post-item .post-item__box .post-item__link {
  align-self: flex-end;
}

.post-items-grid .post-item .post-item__box .post-item__text {
  width: 100%;
}

.post-items-grid .post-item .post-item__box h2 {
  margin-bottom: 0.4em;
}

.post-items-grid .post-item .post-item__box h2,
.post-items-grid .post-item .post-item__box h3 {
  width: 100%;
  -webkit-hyphens: auto;
          hyphens: auto;
}

.post-items-grid .post-item .post-item__box h2::first-letter,
.post-items-grid .post-item .post-item__box h3::first-letter {
  text-transform: uppercase;
}

.post-items-grid .post-item .post-item__image {
  flex: 0 0 45%;
  overflow: hidden;
  background-color: #fff;
  position: relative;
  padding-bottom: 53%;
}

.post-items-grid .post-item .post-item__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: 0.4s ease-in-out;
}

@media only screen and (max-width: 1250px) and (min-width: 670px) {
  .post-items-grid .post-item {
    display: block;
  }
}
@media only screen and (max-width: 670px) {
  .post-items-grid {
    flex-flow: row wrap;
  }
  .post-items-grid .post-item {
    flex: 0 0 100%;
  }
}
@media only screen and (max-width: 480px) {
  .post-items-grid .post-item {
    display: block;
  }
}
