/*
 * Copyright 2021 FIZ Karlsruhe - Leibniz-Institut fuer Informationsinfrastruktur GmbH
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#block-views-block-virtual-exhibitions-block-1 {
  margin-bottom: 7px;
}

#block-views-block-virtual-exhibitions-block-1 .view-header {
  margin-bottom: 20px;
}

#block-views-block-virtual-exhibitions-block-1 .block-title {
  color: #a5003b;
  font-size: 28px;
  line-height: 1.1em;
  margin-top: 0;
}

.view-exhibition-grid {
  height: fit-content;
  margin-bottom: 13px;
  display: grid;
}

.view-exhibition-grid .middle-col,
.view-exhibition-grid .first-col {
  margin-right: 20px;
  width: calc(50% - 22px);
  display: inline-block;
}

.view-exhibition-grid .middle-col,
.view-exhibition-grid .last-col {
  margin-left: 19px;
  width: calc(50% - 22px);
  display: inline-block;
}

.exhibition-element {
  position: relative;
  margin-bottom: 13px;
  cursor: pointer;
}

.exhibition-element .text-section .field--name-field-title {
  font-weight: bold;
}
.exhibition-element .text-section .field--name-node-title {
  color: #a5003b;
  max-height: 35px;
  overflow: hidden;
  line-height:18px;
  margin-bottom: 3px;
  font-weight: bold
}

#block-views-block-virtual-exhibitions-block-1 .exhibition-element .text-section .field--name-node-title {
  font-size: 24px;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 28px
}

.exhibition-element .text-section .field--name-body {
  margin-top: 0;
  font-size: 14px;
  line-height: 16px;
  font-weight: bold
}

.exhibition-element:hover .text-section .field--name-node-title,
.exhibition-element:hover .text-section .field--name-body {
  text-decoration: underline !important;
  color: #a5003b;
}

.exhibition-element .image-exhibition .img-responsive {
  min-height: 100px;
  width: 100%;
}

.exhibition-element .text-section {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #e8eae9;
  opacity: 0.9;
  height: 38px;
  padding: 0 5px;
  overflow: hidden;
}

#block-views-block-virtual-exhibitions-block-1 .exhibition-element .text-section {
  height: 87px;
}


/* XS Medium Devices
 */
@media (max-width: 767px) {

  #block-virtualexhibitions .block-title {
    font-size: 24px;
  }

  .view-exhibition-grid .first-col,
  .view-exhibition-grid .middle-col,
  .view-exhibition-grid .last-col {
    margin-left: 0;
    width: 100%;
  }

  #block-views-block-virtual-exhibitions-block-1 .exhibition-element .text-section .field--name-node-title {
    font-size: 16px;
    line-height: 22px;
  }

  #block-views-block-virtual-exhibitions-block-1 .exhibition-element .text-section {
    height: 65px;
  }
}
