/*!
 * Copyright (C) 2023 StApps
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, version 3.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <https://www.gnu.org/licenses/>.
 */
simple-swiper {
  --swiper-slide-width: 256px;
}

.more-news {
  font-size: var(--font-size-xl);
  --color: var(--ion-color-medium-tint);

  &::part(native) {
    height: 100%;
    background: none;
    border-radius: var(--border-radius-default);
  }

  ion-label {
    position: absolute;
    top: 0;
    left: 0;
  }

  ion-thumbnail {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 100;
    height: 200px;
    width: 200px;
  }
}

:host.square ::ng-deep {
  ion-item {
    margin: 0;
  }

  ion-row {
    flex-direction: column;
    justify-content: space-between;
    height: 120px;
  }

  ion-col {
    flex-grow: 0;
    flex-basis: min-content;
  }

  .title {
    display: -webkit-box;
    white-space: break-spaces;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .title-sub {
    display: none;
  }

  // fix for Safari
  stapps-offers-in-list {
    position: absolute;
    bottom: 0;
    right: 0;
  }

  stapps-offers-in-list .place {
    display: none;
  }
}
